[3.0.x](bug #3549) Sorted framework options in the dropdown menu
In addbook.pl, the framework options are sorted in random order. They should be sorted in alphabetical order of value or code. Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
parent
abba73ebb6
commit
eee734518f
|
|
@ -57,8 +57,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
# get framework list
|
||||
my $frameworks = getframeworks;
|
||||
my @frameworkcodeloop;
|
||||
foreach my $thisframeworkcode ( keys %{$frameworks} ) {
|
||||
push @frameworkcodeloop, {
|
||||
foreach my $thisframeworkcode ( sort keys %$frameworks ) {
|
||||
push @frameworkcodeloop,{
|
||||
value => $thisframeworkcode,
|
||||
frameworktext => $frameworks->{$thisframeworkcode}->{'frameworktext'},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue