From 7f01ef37ed0c71e9d5fea47c2f6841524c345ed1 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 14 Jul 2015 15:12:22 +0000 Subject: [PATCH] Do not reference customfields if they are already read -Fix second row of infolog customfields in CRM view does not respect nm filters --- etemplate/inc/class.etemplate_widget_customfields.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_customfields.inc.php b/etemplate/inc/class.etemplate_widget_customfields.inc.php index 5533a6b64e..8cc0287017 100644 --- a/etemplate/inc/class.etemplate_widget_customfields.inc.php +++ b/etemplate/inc/class.etemplate_widget_customfields.inc.php @@ -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))