mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-14 03:54:29 +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
4d9f1d71fd
commit
6c89709b0d
@ -420,13 +420,15 @@ class etemplate extends boetemplate
|
||||
{
|
||||
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;
|
||||
$tab_tpl = new etemplate($tab);
|
||||
if ($tab_tpl->get_widget_by_name($name))
|
||||
{
|
||||
$content[$widget['name']] = $tab;
|
||||
$content[$tab_name] = $tab;
|
||||
break 3;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user