forked from extern/egroupware
Fix tabbox widget validation to stay with the same tab when the form get submitted
This commit is contained in:
parent
b0237ef5a3
commit
639040787b
@ -55,7 +55,8 @@ class etemplate_widget_tabbox extends etemplate_widget
|
|||||||
public function validate($cname, array $expand, array $content, &$validated=array())
|
public function validate($cname, array $expand, array $content, &$validated=array())
|
||||||
{
|
{
|
||||||
$form_name = self::form_name($cname, $this->id, $expand);
|
$form_name = self::form_name($cname, $this->id, $expand);
|
||||||
if (!$this->is_readonly($cname, $form_name))
|
|
||||||
|
if (!empty($form_name))
|
||||||
{
|
{
|
||||||
$value = self::get_array($content, $form_name);
|
$value = self::get_array($content, $form_name);
|
||||||
$valid =& self::get_array($validated, $form_name, true);
|
$valid =& self::get_array($validated, $form_name, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user