Bug 6046: suggestedby list on she filter was not created properly
authorPaul Poulain <paul.poulain@biblibre.com>
Mon, 4 Apr 2011 13:53:19 +0000 (15:53 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 4 Apr 2011 21:59:27 +0000 (09:59 +1200)
The suggestedby patron list contained empty lines. This was because retrieving patron name was not correct

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
suggestion/suggestion.pl

index f5202e4..ea3fbf5 100755 (executable)
@@ -56,7 +56,7 @@ sub GetCriteriumDesc{
     return ($criteriumvalue eq 'ASKED'?"Pending":ucfirst(lc( $criteriumvalue))) if ($displayby =~/status/i);
     return (GetBranchName($criteriumvalue)) if ($displayby =~/branchcode/);
     return (GetSupportName($criteriumvalue)) if ($displayby =~/itemtype/);
-    if ($displayby =~/managedby/||$displayby =~/acceptedby/){
+    if ($displayby =~/suggestedby/||$displayby =~/managedby/||$displayby =~/acceptedby/){
         my $borr=C4::Members::GetMember(borrowernumber=>$criteriumvalue);
         return "" unless $borr;
         return $$borr{firstname} . ", " . $$borr{surname};