Bug 10362: ensure that all messages and alerts are shown upon checkin
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Tue, 28 May 2013 13:43:05 +0000 (15:43 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 12 Aug 2013 15:18:46 +0000 (15:18 +0000)
If an item is returned and has mutiple error or warnings (e.g.,
it both needs to be transferred and the patron was debarred
in the course of the return), because of a bug in the template,
not all of the messages would be displayed.

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@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt

index 98d2ae9..775454f 100644 (file)
@@ -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>