bug 1542 followup - tweak to keep handling the UI selected value out of C4
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
8f902d3248
commit
df99b9b69c
2 changed files with 4 additions and 2 deletions
|
@ -162,7 +162,6 @@ sub get_report_areas {
|
|||
my %hashrep;
|
||||
$hashrep{id} = $i + 1;
|
||||
$hashrep{name} = $reports[$i];
|
||||
$hashrep{selected} = 1 if $hashrep{id} == $area;
|
||||
push @reports2, \%hashrep;
|
||||
}
|
||||
return ( \@reports2 );
|
||||
|
|
|
@ -55,7 +55,10 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
|
|||
|
||||
if ($phase eq 'View Dictionary'){
|
||||
# view the dictionary we use to set up abstract variables such as all borrowers over fifty who live in a certain town
|
||||
my $areas = get_report_areas($area);
|
||||
my $areas = get_report_areas();
|
||||
foreach (@{ $areas }) {
|
||||
$_->{selected} = 1 if $_->{id} eq $area; # mark active area
|
||||
}
|
||||
my $definitions = get_from_dictionary($area);
|
||||
$template->param( 'areas' => $areas ,
|
||||
'start_dictionary' => 1,
|
||||
|
|
Loading…
Reference in a new issue