Fix js TypeError for missing widget for 'user_agent_action'

This commit is contained in:
nathangray 2019-03-01 10:30:53 -07:00
parent 0abec539c3
commit b39f4e0aef

View File

@ -474,8 +474,8 @@ var et2_historylog = (function(){ "use strict"; return et2_valueWidget.extend([e
value = _data['share_email'];
}
// Get widget from list, unless it needs a diff widget
if(typeof widget == 'undefined' && typeof self.fields[_data.status] != 'undefined' && i < self.NEW_VALUE ||
i >= self.NEW_VALUE &&!self._needsDiffWidget(_data['status'], _data[self.columns[self.OLD_VALUE].id]))
if(typeof widget == 'undefined' && typeof self.fields[_data.status] != 'undefined' && (i < self.NEW_VALUE ||
i >= self.NEW_VALUE &&!self._needsDiffWidget(_data['status'], _data[self.columns[self.OLD_VALUE].id])))
{
widget = self.fields[_data.status].widget;
if(!widget._children.length)