From 41aa12cc847db4bd6f042c245b4750919771f17e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Sun, 27 Jul 2014 20:30:47 +0200 Subject: [PATCH] Bug 4231 - Placing holds from cart fails silently This patch adds a more meaningfull message if multiple biblios with no items attached are in the cart. To test: - Add biblios with and without items to cart - Go to cart, select all and click 'Place hold' Without patch, message reads: Cannot place hold: this record has no items attached. With patch, message reads: Cannot place hold: one or more records without items attached. --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index cafc072..60551f4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -182,9 +182,13 @@ function checkMultiHold() {
[% IF ( noitems ) %] -
-Cannot place hold: this record has no items attached. -
+
+ [%IF (multi_hold) %] + Cannot place hold: one or more records without items attached. + [% ELSE %] + Cannot place hold: this record has no items attached. + [% END %] + [% ELSE %] [% IF ( messagetransfert ) %]
-- 1.7.10.4