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>
(cherry picked from commit 5192fd81ad)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 8525d49e06)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 8525d49e06)
This commit is contained in:
Fridolyn SOMERS 2013-05-28 15:43:05 +02:00 committed by Bernardo Gonzalez Kriegel
parent e838b37cfa
commit f7c12eb41c
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">
@ -355,7 +355,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>