From a8564dbcf1a27fd76a8eaa203a7b6b8fb3f4fc47 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 8 Feb 2010 11:08:57 -0500 Subject: [PATCH] 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 --- opac/opac-suggestions.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/opac/opac-suggestions.pl b/opac/opac-suggestions.pl index 12eea5f779..f22d06eeeb 100755 --- a/opac/opac-suggestions.pl +++ b/opac/opac-suggestions.pl @@ -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, -- 2.39.5