From dba03454fb2af4724d6dd60373f7c224795b697a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 24 Mar 2014 09:03:38 +0000 Subject: [PATCH] using $readonlys["__ALL__"] with explicit $readonlys[$name] = false was NOT working for extensions --- etemplate/inc/class.etemplate.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.etemplate.inc.php b/etemplate/inc/class.etemplate.inc.php index 40acdbe4ef..f1c55b9583 100644 --- a/etemplate/inc/class.etemplate.inc.php +++ b/etemplate/inc/class.etemplate.inc.php @@ -318,7 +318,7 @@ class etemplate extends boetemplate '."\n"; @@ -1135,7 +1135,7 @@ class etemplate extends boetemplate } if (!$ext_type) $ext_type = $type; // if readonlys[__ALL__] is set, also set readonlys[$name] (extensions can mark themselfs as 'noReadonlysALL', eg. tab-widget!) - if ($readonlys['__ALL__'] && !$this->haveExtension($type,'noReadonlysALL')) + if ($readonlys['__ALL__'] && $readonlys[$name] !== false && !$this->haveExtension($type,'noReadonlysALL')) { $readonlys[$name] = true; }