diff --git a/circ/circulation.pl b/circ/circulation.pl index ca4b995a01..398fdd2309 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -653,10 +653,17 @@ if ( C4::Context->preference("memberofinstitution") ) { ); } +my $lib_messages_loop = GetMessages( $borrowernumber, 'L', $branch ); +if($lib_messages_loop){ $template->param(flagged => 1 ); } + +my $bor_messages_loop = GetMessages( $borrowernumber, 'B', $branch ); +if($bor_messages_loop){ $template->param(flagged => 1 ); } + + $template->param( issued_itemtypes_count_loop => \@issued_itemtypes_count_loop, - lib_messages_loop => GetMessages( $borrowernumber, 'L', $branch ), - bor_messages_loop => GetMessages( $borrowernumber, 'B', $branch ), + lib_messages_loop => $lib_messages_loop, + bor_messages_loop => $bor_messages_loop, all_messages_del => C4::Context->preference('AllowAllMessageDeletion'), findborrower => $findborrower, borrower => $borrower, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index 8b8b9900a1..4ab1126513 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -7,7 +7,7 @@ - - -
@@ -171,34 +166,36 @@ function showhide(id){ -