From: Owen Leonard Date: Fri, 25 Sep 2009 18:54:11 +0000 (-0500) Subject: Corrections to ensure message list appears in the proper box (Bug 3668). X-Git-Tag: v3.02.00-alpha~69 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=75423b301062c8b334a879eaa6b5f6abbeb03d02;p=koha.git Corrections to ensure message list appears in the proper box (Bug 3668). The patch sets a "flagged" variable for displaying the messages correctly, bringing it in line with the way other messages are displayed. The patch also includes some markup tweaks and a change to make display of the "add message" link javascript-dependent. Signed-off-by: Galen Charlton --- 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){ -