From 1ca3706ae2ba42769f15a771995b4a836adc5da4 Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 1 Jul 2016 13:05:16 -0600 Subject: [PATCH] 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 --- api/js/etemplate/et2_extension_nextmatch.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/js/etemplate/et2_extension_nextmatch.js b/api/js/etemplate/et2_extension_nextmatch.js index 0bb5358602..3681c0bcbc 100644 --- a/api/js/etemplate/et2_extension_nextmatch.js +++ b/api/js/etemplate/et2_extension_nextmatch.js @@ -3137,6 +3137,11 @@ var et2_nextmatch_customfields = (function(){ "use strict"; return et2_customfie }, this); } + // If this is already attached, widget needs to be finished explicitly + if(this.isAttached() && !widget.isAttached()) + { + widget.doLoadingFinished(); + } // Check for column filter if(!jQuery.isEmptyObject(this.options.fields) && ( this.options.fields[field_name] == false || typeof this.options.fields[field_name] == 'undefined'))