forked from extern/egroupware
fix not displayed history of deleted object with new_value === null
This commit is contained in:
parent
934fe74fa2
commit
6e5fbbba7e
@ -7,7 +7,6 @@
|
||||
* @link http://www.egroupware.org
|
||||
* @author Nathan Gray
|
||||
* @copyright 2012 Nathan Gray
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
/*egw:uses
|
||||
@ -529,7 +528,8 @@ var et2_historylog = (function(){ "use strict"; return et2_valueWidget.extend([e
|
||||
else if ((
|
||||
// Already parsed & cached
|
||||
typeof _data[self.columns[self.NEW_VALUE].id] == "object" &&
|
||||
typeof _data[self.columns[self.NEW_VALUE].id].new != "undefined") ||
|
||||
typeof _data[self.columns[self.NEW_VALUE].id] != "undefined" &&
|
||||
_data[self.columns[self.NEW_VALUE].id] !== null) || // typeof null === 'object'
|
||||
// Large old value
|
||||
self._needsDiffWidget(_data['status'], _data[self.columns[self.OLD_VALUE].id]) ||
|
||||
// Large new value
|
||||
@ -560,7 +560,7 @@ var et2_historylog = (function(){ "use strict"; return et2_valueWidget.extend([e
|
||||
else
|
||||
{
|
||||
// No widget fallback - display actual value
|
||||
nodes = '<span>'+ value + '</span>';
|
||||
nodes = jQuery('<span>').text(value === null ? '' : value);
|
||||
}
|
||||
if(widget)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user