Bug 10362: ensure that all messages and alerts are shown upon checkin

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>
This commit is contained in:
Fridolyn SOMERS 2013-05-28 15:43:05 +02:00 committed by Galen Charlton
parent 4f263b3a90
commit 5192fd81ad
1 changed files with 1 additions and 2 deletions

View 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>