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: Hector Castro <hector.hecaxmmx@gmail.com> Works as described Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
11dc97cfae
commit
d17085ea03
2 changed files with 2 additions and 16 deletions
|
@ -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"> </i>
|
||||
[% END %]
|
||||
[% frameworkcodeloo.frameworktext %]
|
||||
[% frameworkcodeloo.description %]
|
||||
</a>
|
||||
</li>
|
||||
[% END %]
|
||||
|
|
Loading…
Reference in a new issue