Commit d17085ea authored by Wm. Nick Clemens's avatar Wm. Nick Clemens Committed by Kyle M Hall

Bug 16807: Frameworks unordered in dropdown when adding/editing a biblio

To test:
Start to add or edit a biblio
Open the dropdown to change framework
Notice the order
Refresh the page - notice the order changes
Apply patch
Order is alphabetical
Refresh the page
Order does not change
Signed-off-by: default avatarHector Castro <hector.hecaxmmx@gmail.com>
Works as described
Signed-off-by: default avatarKyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: default avatarKyle M Hall <kyle@bywatersolutions.com>
parent 11dc97cf
......@@ -746,21 +746,7 @@ if ($frameworkcode eq 'FA'){
}
# Getting the list of all frameworks
# get framework list
my $frameworks = getframeworks;
my @frameworkcodeloop;
foreach my $thisframeworkcode ( keys %$frameworks ) {
my %row = (
value => $thisframeworkcode,
frameworktext => $frameworks->{$thisframeworkcode}->{'frameworktext'},
);
if ($frameworkcode eq $thisframeworkcode){
$row{'selected'} = 1;
}
push @frameworkcodeloop, \%row;
}
$template->param( frameworkcodeloop => \@frameworkcodeloop,
$template->param( frameworkcodeloop => GetFrameworksLoop( $frameworkcode ) ,
breedingid => $breedingid );
# ++ Global
......
......@@ -500,7 +500,7 @@ function Changefwk(FwkList) {
[% ELSE %]
<i class="fa fa-fw">&nbsp;</i>
[% END %]
[% frameworkcodeloo.frameworktext %]
[% frameworkcodeloo.description %]
</a>
</li>
[% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment