mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
AuthGroupField select "none" when empty string is provided
This commit is contained in:
parent
f44a60f9b0
commit
324bd7555d
@ -93,7 +93,7 @@ class AuthGroupField extends BaseField
|
||||
$result = array ();
|
||||
// if certificate is not required, add empty option
|
||||
if (!$this->internalIsRequired) {
|
||||
$result[""] = array("value" => gettext("none"), "selected" => 0);
|
||||
$result[""] = array("value" => gettext("none"), "selected" => ($this->internalValue == "") ? 1 : 0);
|
||||
}
|
||||
|
||||
$groups = explode(',', $this->internalValue);
|
||||
@ -129,4 +129,4 @@ class AuthGroupField extends BaseField
|
||||
}
|
||||
return $validators;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user