form : if the form contains only checkboxes, manage correctely the focus on first one
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5179 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -376,7 +376,10 @@ class form
|
||||
{
|
||||
if ($field->type === "hidden" || $field->readonly === true)
|
||||
continue;
|
||||
$focusElement = $field->name;
|
||||
if ($field->titles)
|
||||
$focusElement = $field->name."_".key ($field->titles);
|
||||
else
|
||||
$focusElement = $field->name;
|
||||
break;
|
||||
}
|
||||
if (count ($errors) > 0)
|
||||
|
||||
Reference in New Issue
Block a user