mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Fix diff widget to better handle empty values (cleared fields)
This commit is contained in:
parent
3ab3c93f6d
commit
c27e4f2098
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user