mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-10 15:30:21 +01:00
"validation error in named tab (eg. \"tabs=general|one|two\") did not change to tab with field causing the validation error"
This commit is contained in:
parent
c7730ea6f9
commit
e117b8108f
@ -451,13 +451,15 @@ class etemplate extends boetemplate
|
|||||||
{
|
{
|
||||||
foreach($this->get_widgets_by_type('tab') as $widget)
|
foreach($this->get_widgets_by_type('tab') as $widget)
|
||||||
{
|
{
|
||||||
foreach(explode('|',$widget['name']) as $tab)
|
$tab_name = $tabs = $widget['name'];
|
||||||
|
if (strpos($tabs,'=') !== false) list($tab_name,$tabs) = explode('=',$tabs,2);
|
||||||
|
foreach(explode('|',$tabs) as $tab)
|
||||||
{
|
{
|
||||||
if (strpos('.',$tab) === false) $tab = $this->name.'.'.$tab;
|
if (strpos('.',$tab) === false) $tab = $this->name.'.'.$tab;
|
||||||
$tab_tpl = new etemplate($tab);
|
$tab_tpl = new etemplate($tab);
|
||||||
if ($tab_tpl->get_widget_by_name($name))
|
if ($tab_tpl->get_widget_by_name($name))
|
||||||
{
|
{
|
||||||
$content[$widget['name']] = $tab;
|
$content[$tab_name] = $tab;
|
||||||
break 3;
|
break 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user