From 324cb055994dd627e9ad7d1aa802a2feaa00c5c0 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 5 Jul 2011 15:56:30 +0000 Subject: [PATCH] Use different app if running hooked also --- etemplate/inc/class.customfields_widget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.customfields_widget.inc.php b/etemplate/inc/class.customfields_widget.inc.php index 764bd150d8..cc348fcf44 100644 --- a/etemplate/inc/class.customfields_widget.inc.php +++ b/etemplate/inc/class.customfields_widget.inc.php @@ -112,7 +112,7 @@ class customfields_widget { 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)) + if ($app && $app != 'stylite' && $app != $this->appname && ($this->appname == 'etemplate' || !$this->customfields || etemplate::$hooked)) { self::__construct(null,$app); // app changed }