Skip to content

Commit

Permalink
Merge pull request #2 from dlbptfs/PT56448214
Browse files Browse the repository at this point in the history
[#56448214] Random drop down menu order when updating member attribute S...
  • Loading branch information
ctfliblime committed Jan 15, 2015
2 parents 4545a9c + 92e0d59 commit d675771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cgi/members/memberentry.pl
Original file line number Diff line number Diff line change
Expand Up @@ -789,11 +789,11 @@ sub patron_attributes_form {
$newentry->{use_dropdown} = 0;
if ($attr_type->authorised_value_category()) {
$newentry->{use_dropdown} = 1;
$newentry->{auth_val_loop} = GetAuthorisedValues($attr_type->authorised_value_category(), $attr->{value});
my $authvals = GetAuthorisedValues($attr_type->authorised_value_category(), $attr->{value});
$newentry->{auth_val_loop} = [ sort {lc($a->{lib}) cmp lc($b->{lib})} @{$authvals} ];
}
$i++;
$newentry->{form_id} = "patron_attr_$i";
#use Data::Dumper; die Dumper($entry) if $entry->{use_dropdown};
push @attribute_loop, $newentry;
}
} else {
Expand Down

0 comments on commit d675771

Please sign in to comment.