fix groupbox to have NO namespace (it was implemented on client-side with and on server-side without namespace before)

This commit is contained in:
Ralf Becker 2015-07-07 11:37:41 +00:00
parent 71fc6a7627
commit 8c57206745

View File

@ -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);