From 7f4bef9bfec20529607cca635e08561fbdcc0ea1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Fri, 10 Feb 2017 16:07:13 +0100 Subject: [PATCH] Bug 18095: Batch item modification: Better message if no item is modified If no item is modified, the result page of Batch item modification says: "item(s) modified (with fields modified)." The message should be: "No items modified" To reproduce: - Go to Tools -> Batch item modification - Put a barcode in and click Continue - Do not make any changes and/or deselect all item(s) - Click "Save" => Result message reads: "item(s) modified (with fields modified)." To test: - Apply patch - Repeat steps above - Verify that message makes sense. NOTE: Also tested positive case with actual field change. Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit adca73545e75c31198e3d094512da7961460ed02) Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt index 5eb138eaea..7d5ca56ea4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -70,7 +70,11 @@ $(document).ready(function(){ [% ELSE %]

Batch item modification results

- [% modified_items %] item(s) modified (with [% modified_fields %] fields modified). + [% IF (modified_items) %] + [% modified_items %] item(s) modified (with [% modified_fields %] field(s) modified). + [% ELSE %] + No items modified. + [% END %]
[% IF src == 'CATALOGUING' # from catalogue/detail.pl > Edit items in a batch%] Return to the record -- 2.39.5