From d616b36e9f89daa7fc6a147db15bd6f2748acbbe Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 9 Jan 2012 17:36:38 +0000 Subject: [PATCH] Fix missing infolog custom fields in contact view --- etemplate/inc/class.customfields_widget.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.customfields_widget.inc.php b/etemplate/inc/class.customfields_widget.inc.php index 2bc9500e5d..18e51cf505 100644 --- a/etemplate/inc/class.customfields_widget.inc.php +++ b/etemplate/inc/class.customfields_widget.inc.php @@ -112,11 +112,13 @@ class customfields_widget function pre_process($form_name,&$value,&$cell,&$readonlys,&$extension_data,etemplate $tmpl) { list($app) = explode('.',$tmpl->name); - // 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 != $this->appname && ($this->appname == 'etemplate' || !$this->customfields || etemplate::$hooked)) + + // if we are in the etemplate editor or a different app, load the cf's from the app the tpl belongs to + if ($app && $app != 'stylite' && $app != $this->appname) { self::__construct(null,$app); // app changed } + list($type2,$use_private,$field_names) = explode(',',$cell['size'],3); $fields_with_vals=array();