From 05a3ccb320a1df4fc818c687d0c1239d0e35121b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 28 Jun 2011 20:47:35 +0000 Subject: [PATCH] dont load cfs for template from stylite app --- etemplate/inc/class.customfields_widget.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etemplate/inc/class.customfields_widget.inc.php b/etemplate/inc/class.customfields_widget.inc.php index 57b6f9bf1c..764bd150d8 100644 --- a/etemplate/inc/class.customfields_widget.inc.php +++ b/etemplate/inc/class.customfields_widget.inc.php @@ -111,10 +111,10 @@ class customfields_widget function pre_process($form_name,&$value,&$cell,&$readonlys,&$extension_data,etemplate $tmpl) { list($app) = explode('.',$tmpl->name); - if ($this->appname == 'etemplate' || !$this->customfields || // 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 - ($app && $app != $this->appname) ) // app changed + // 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)) { - self::__construct(null,$app); + self::__construct(null,$app); // app changed } list($type2,$use_private,$field_names) = explode(',',$cell['size'],3); $fields_with_vals=array();