[Koha-patches] [PATCH 64/92] Fixing suggestions management page, Authorised values werent being passed through
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Tue Dec 22 01:20:57 CET 2009
From: Chris Cormack <chrisc at catalyst.net.nz>
---
suggestion/suggestion.pl | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl
index 8f69148..85b3eb5 100755
--- a/suggestion/suggestion.pl
+++ b/suggestion/suggestion.pl
@@ -157,6 +157,7 @@ if ($op=~/else/) {
$displayby||="STATUS";
my $criteria_list=GetDistinctValues("suggestions.".$displayby);
my @allsuggestions;
+ my $reasonsloop = GetAuthorisedValues("SUGGEST");
foreach my $criteriumvalue (map{$$_{'value'}} @$criteria_list){
my $definedvalue = defined $$suggestion_ref{$displayby} && $$suggestion_ref{$displayby} ne "";
@@ -179,16 +180,17 @@ if ($op=~/else/) {
"suggestiontypelabel"=>GetCriteriumDesc($criteriumvalue,$displayby)||"",
"suggestionscount"=>scalar(@$suggestions),
'suggestions_loop'=>$suggestions,
+ 'reasonsloop' => $reasonsloop,
};
delete $$suggestion_ref{$displayby} unless $definedvalue;
}
- my $reasonsloop = GetAuthorisedValues("SUGGEST");
+
$template->param(
"displayby"=> $displayby,
"notabs"=> $displayby eq "",
suggestions => \@allsuggestions,
- reasonsloop => $reasonsloop,
+
);
}
--
1.6.3.3
More information about the Koha-patches
mailing list