Skip to content

Commit b29248d

Browse files
committed
Import fix for issue with radio buttons on admin page
See also ericvaandering#13
1 parent 515b64b commit b29248d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

DocDB/cgi/AdministerElements.pm

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,15 @@ sub AdministerActions (%) {
2929
my $Form = $Params{-form} || "";
3030
my $AddTransfer = $Params{-addTransfer} || $FALSE;
3131

32-
my %Action = ();
32+
# XXX: EGI applied https://github.com/ericvaandering/DocDB/pull/13
33+
my @Action = ('New', 'Delete', 'Modify');
3334

34-
$Action{Delete} = "Delete";
35-
$Action{New} = "New";
36-
$Action{Modify} = "Modify";
3735
if ($AddTransfer) {
38-
$Action{Transfer} = "Transfer";
36+
unshift(@Action, "Transfer");
3937
}
4038
print FormElementTitle(-helplink => "admaction", -helptext => "Action");
4139
print $query -> radio_group(-name => "admaction",
42-
-values => \%Action, -default => "-",
40+
-values => \@Action, -default => "-",
4341
-onclick => "disabler_$Form();");
4442
};
4543

0 commit comments

Comments
 (0)