From de1dab30d9aa55e5fa2e26d892a5ce16620b3f4a 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: Mason James --- .../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 743260478c..98cac5cca1 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 @@ -62,7 +62,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