diff --git a/etemplate/js/et2_widget_diff.js b/etemplate/js/et2_widget_diff.js index 98029c5fe7..4a73d77b50 100644 --- a/etemplate/js/et2_widget_diff.js +++ b/etemplate/js/et2_widget_diff.js @@ -49,7 +49,7 @@ var et2_diff = et2_valueWidget.extend([et2_IDetachedDOM], set_value: function(value) { jQuery(this.div).empty(); - if(value['old'] && value['new']) { + if(typeof value['old'] == 'string' && typeof value['new'] == 'string') { // Build diff var old_text = difflib.stringAsLines(value['old'].toString()); var new_text = difflib.stringAsLines(value['new'].toString());