Do not reference customfields if they are already read

-Fix second row of infolog customfields in CRM view does not respect nm filters
This commit is contained in:
Hadi Nategh 2015-07-15 12:14:38 +00:00
parent 91a162f8ba
commit 99c67eacc7

View File

@ -127,7 +127,7 @@ class etemplate_widget_customfields extends etemplate_widget_transformer
}
// if we are in the etemplate editor or the app has no cf's, load the cf's from the app the tpl belongs too
if ($app && $app != 'stylite' && $app != $GLOBALS['egw_info']['flags']['currentapp'] && (
if ($app && $app != 'stylite' && $app != $GLOBALS['egw_info']['flags']['currentapp'] && !isset($customfields) && (
$GLOBALS['egw_info']['flags']['currentapp'] == 'etemplate' || !$this->attrs['customfields'] ||
etemplate::$hooked
) || !isset($customfields))