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,