From 19be03438e73f02c56a7c5a0894382ffd901f41c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 7 Jul 2015 11:38:01 +0000 Subject: [PATCH] fix groupbox to have NO namespace (it was implemented on client-side with and on server-side without namespace before) --- etemplate/inc/class.etemplate_widget.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.etemplate_widget.inc.php b/etemplate/inc/class.etemplate_widget.inc.php index a2e5e2178e..7a47bb5274 100644 --- a/etemplate/inc/class.etemplate_widget.inc.php +++ b/etemplate/inc/class.etemplate_widget.inc.php @@ -910,7 +910,8 @@ class etemplate_widget_box extends etemplate_widget /** * Run a given method on all children * - * Reimplemented because grids and boxes can have an own namespace + * Reimplemented because grids and boxes can have an own namespace. + * GroupBox has no namespace! * * @param string $method_name * @param array $params =array('') parameter(s) first parameter has to be cname! @@ -923,7 +924,7 @@ class etemplate_widget_box extends etemplate_widget $old_cname = $params[0]; $old_expand = $params[1]; - if ($this->id) $cname = self::form_name($cname, $this->id, $params[1]); + if ($this->id && $this->type != 'groupbox') $cname = self::form_name($cname, $this->id, $params[1]); if ($expand['cname'] !== $cname && $cname) { $expand['cont'] =& self::get_array(self::$request->content, $cname);