Make sure customfield header widgets get finished, even if customfield widget is already done.

Fixes addressbook switching from 'All contacts' to organization and back loses customfield headers
This commit is contained in:
nathangray 2016-07-01 13:05:16 -06:00
parent 0aaca03d89
commit 2615837137

View File

@ -3137,6 +3137,11 @@ var et2_nextmatch_customfields = (function(){ "use strict"; return et2_customfie
}, this); }, this);
} }
// If this is already attached, widget needs to be finished explicitly
if(this.isAttached() && !widget.isAttached())
{
widget.doLoadingFinished();
}
// Check for column filter // Check for column filter
if(!jQuery.isEmptyObject(this.options.fields) && ( if(!jQuery.isEmptyObject(this.options.fields) && (
this.options.fields[field_name] == false || typeof this.options.fields[field_name] == 'undefined')) this.options.fields[field_name] == false || typeof this.options.fields[field_name] == 'undefined'))