Fix history log widget no longer working

This commit is contained in:
Nathan Gray
2014-08-27 17:13:38 +00:00
parent df83b4dbbe
commit ff29be3197
6 changed files with 50 additions and 23 deletions

View File

@@ -944,7 +944,7 @@ var et2_selectbox_ro = et2_selectbox.extend([et2_IDetachedDOM],
for(var o in this.optionValues)
{
var option = this.optionValues[o];
var key = typeof option == 'object' && typeof option.value != 'undefined' ? option.value : o;
var key = typeof option == 'object' && option != null && typeof option.value != 'undefined' ? option.value : o;
if (key != _value[i]) continue;
var label = typeof option == 'object' ? option.label : option;
if (_value.length == 1)