From 88dbf465983e7b4471c78c372c512eb577205e69 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] [PASSED QA] 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. Signed-off-by: Owen Leonard Signed-off-by: Kyle M Hall --- .../prog/en/modules/reserve/request.tt | 10 +++++++--- 1 files 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.2.5