From a132aa62adc178ae8ade79bec0f220555b5627b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?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 --- koha-tmpl/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 2fd838f..c04733c 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.1.4