Bugzilla – Attachment 37408 Details for
Bug 8246
can't delete bibs in big batch delete
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8246: Allow deleting record if no more items
Bug-8246-Allow-deleting-record-if-no-more-items.patch (text/plain), 2.30 KB, created by
Jonathan Druart
on 2015-03-31 14:36:23 UTC
(
hide
)
Description:
Bug 8246: Allow deleting record if no more items
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-03-31 14:36:23 UTC
Size:
2.30 KB
patch
obsolete
>From 8f11523354cea0449bcc9a84645a7296c7fa5141 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 31 Mar 2015 16:32:33 +0200 >Subject: [PATCH] Bug 8246: Allow deleting record if no more items > >The "Delete records if no items remain" was only available if the batch >did not contain "too many" items (see MaxItemsForBatch). >This limitation does not make any sense. > >Test plan: >1/ Set MaxItemsForBatch=10 >2/ Use the batch item deletion to delete 10+ items >3/ Confirm the checkbox "Delete records if no items remain" is displayed >4/ Check it >5/ Launch the job > >Verify that the records without items have been deleted also. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt >index 71cc9af..92d3137 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt >@@ -135,9 +135,12 @@ for( x=0; x<allColumns.length; x++ ){ > <div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> > <div id="jobfailed"></div> > </div> >- [% IF ( too_many_items ) %]<input type="submit" name="mainformsubmit" value="Delete ALL submitted items" onclick="return submitBackgroundJob(this.form);" />[% ELSE %] >- <input type="checkbox" name="del_records" id="del_records" /> <label for="del_records">Delete records if no items remain.</label><p> >- <input type="submit" name="mainformsubmit" value="Delete selected items" onclick="return submitBackgroundJob(this.form);" />[% END %] >+ <input type="checkbox" name="del_records" id="del_records" /> <label for="del_records">Delete records if no items remain.</label> >+ [% IF too_many_items %] >+ <input type="submit" name="mainformsubmit" value="Delete ALL submitted items" onclick="return submitBackgroundJob(this.form);" /> >+ [% ELSE %] >+ <input type="submit" name="mainformsubmit" value="Delete selected items" onclick="return submitBackgroundJob(this.form);" /> >+ [% END %] > > <a href="/cgi-bin/koha/tools/batchMod.pl?del=1" class="cancel">Cancel</a> > </fieldset> >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8246
:
37408
|
37441
|
37455