From e1eeca372ff7bda00d9321f4d39896f50901e1c5 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Mon, 20 May 2013 16:02:28 +0100 Subject: [PATCH] Bug 10163: Allow batch-mod on item lists > 1000 lines An earlier bugfix to deal with lists of 0 items inadvertantly renoved the ability to process lists creater than 1000 items The error is that the flag too_many_items and the list item_loop are mutually exclusive either one or the other exists but not both. Change logic so it accounts for this --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 85a8db9..937b59e 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 @@ -82,10 +82,8 @@ $(document).ready(function(){ [% END %] - [% IF ( item_loop ) %] - [% UNLESS ( too_many_items ) %] + [% IF item_loop %]

The following barcodes were found:

- [% END %] [% END %] [% END %] @@ -96,7 +94,7 @@ $(document).ready(function(){ -[% IF ( item_loop ) %] +[% IF item_loop || too_many_items %] [% IF ( show ) %]
Select All | Clear All
[% ELSE %][% END %]
-- 1.8.3.rc2