Fix for Bug 4093, OPAC Suggestions List has extra column

- This code was added to opac-suggestions.pl at one point by
  Garry Collum and was subsequently removed. Adding it back.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Owen Leonard 2010-02-08 11:08:57 -05:00 committed by Galen Charlton
parent 7b1a3d1ae8
commit a8564dbcf1
1 changed files with 9 additions and 0 deletions

View File

@ -103,6 +103,15 @@ foreach my $support(@$supportlist){
delete $$support{'imageurl'}
}
}
foreach my $suggestion(@$suggestions_loop) {
if($suggestion->{'suggestedby'} == $borrowernumber) {
$suggestion->{'showcheckbox'} = $borrowernumber;
} else {
$suggestion->{'showcheckbox'} = 0;
}
}
$template->param(
%$suggestion,
itemtypeloop=> $supportlist,