Select original if nothing else is selected
This commit is contained in:
parent
06660882b5
commit
c8bb112a5d
|
@ -14,6 +14,9 @@ class AdminerEnumOption {
|
||||||
$selected = $value;
|
$selected = $value;
|
||||||
if (isset($_GET["select"])) {
|
if (isset($_GET["select"])) {
|
||||||
$options[-1] = lang('original');
|
$options[-1] = lang('original');
|
||||||
|
if ($selected === null) {
|
||||||
|
$selected = -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($field["null"]) {
|
if ($field["null"]) {
|
||||||
$options[""] = "NULL";
|
$options[""] = "NULL";
|
||||||
|
|
Loading…
Reference in a new issue