[Koha-patches] [PATCH] Bug 10362 - on return with reserve or transfer the alerts are not shown

Srdjan srdjan at catalyst.net.nz
Fri May 31 08:31:23 CEST 2013


From: Fridolyn SOMERS <fridolyn.somers at biblibre.com>

When a return is performed on an item with a reserve or a transfer, the possible alert messages are not shown.
These alerts are cases from errmsgloop like "NotIssued", "debarred" ...

This patch changes the template to show both messages and alerts.

Test plan :
- Perform an checkout that will a checkin :
  * need a transfert (return in a different branch)
  * set user debarred (depends on issuing rules)
- Perform check-in
=> You get tranfert message and debarment alert

Signed-off-by: Srdjan <srdjan at catalyst.net.nz>
---
 koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
index 98d2ae9..775454f 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
@@ -313,7 +313,7 @@ $(document).ready(function () {
         </form>
 	</div>
     [% END %]
-[% ELSE %]
+[% END %]
 
 [% IF ( errmsgloop ) %]
     <div class="dialog alert">
@@ -360,7 +360,6 @@ $(document).ready(function () {
 [% END %]
         [% END %]
     </div>
-[% END %]
 
     <div id="exemptfines" class="dialog message" style="display:none;">
         <p>Fines for returned items are forgiven.</p>
-- 
1.8.1.2



More information about the Koha-patches mailing list