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-14 15:12:22 +00:00
parent 7e9b83d280
commit 7f01ef37ed

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 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'] || $GLOBALS['egw_info']['flags']['currentapp'] == 'etemplate' || !$this->attrs['customfields'] ||
etemplate::$hooked etemplate::$hooked
) || !isset($customfields)) ) || !isset($customfields))