Bug 18135 - Can submit batch deletion for authorities without selecting any
Summary: Can submit batch deletion for authorities without selecting any
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low trivial (vote)
Assignee: Aleisha Amohia
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-16 22:16 UTC by Aleisha Amohia
Modified: 2018-06-04 20:10 UTC (History)
3 users (show)

See Also:
Change sponsored?: Sponsored
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 18135: Show alert if no authorities selected in batch record deletion (1.87 KB, patch)
2017-02-16 22:21 UTC, Aleisha Amohia
Details | Diff | Splinter Review
Bug 18135: Show alert if no authorities selected in batch record deletion (1.93 KB, patch)
2017-02-23 03:44 UTC, Mark Tompsett
Details | Diff | Splinter Review
Bug 18135: Show alert if no authorities selected in batch record deletion (2.00 KB, patch)
2017-02-23 16:20 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Aleisha Amohia 2017-02-16 22:16:32 UTC
At the moment, batch deletion for biblios does not let you submit the deletion form without selecting a checkbox - an alert pops up. This behaviour is not the same for authorities. If nothing is selected, the form still submits and says the deletion was successful.
Comment 1 Aleisha Amohia 2017-02-16 22:21:43 UTC
Created attachment 60370 [details] [review]
Bug 18135: Show alert if no authorities selected in batch record deletion

To test:
1) Go to Tools -> Batch record deletion
2) Select Authorities as record type, put in an auth id, click Continue
3) Unselect the authorities and click Delete selected records
4) Confirm an alert shows up
5) Clear the alert and confirm deleting the authority still works as
normal

Sponsored-by: Catalyst IT
Comment 2 Mark Tompsett 2017-02-23 03:44:20 UTC
Eyeballs well. It's a cut-and-paste tweak of the same code for Biblios.
Comment 3 Mark Tompsett 2017-02-23 03:44:56 UTC
Created attachment 60591 [details] [review]
Bug 18135: Show alert if no authorities selected in batch record deletion

To test:
1) Go to Tools -> Batch record deletion
2) Select Authorities as record type, put in an auth id, click Continue
3) Unselect the authorities and click Delete selected records
4) Confirm an alert shows up
5) Clear the alert and confirm deleting the authority still works as
normal

Sponsored-by: Catalyst IT

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Comment 4 Jonathan Druart 2017-02-23 16:20:07 UTC
Created attachment 60620 [details] [review]
Bug 18135: Show alert if no authorities selected in batch record deletion

To test:
1) Go to Tools -> Batch record deletion
2) Select Authorities as record type, put in an auth id, click Continue
3) Unselect the authorities and click Delete selected records
4) Confirm an alert shows up
5) Clear the alert and confirm deleting the authority still works as
normal

Sponsored-by: Catalyst IT

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 5 Kyle M Hall 2017-03-03 18:38:02 UTC
Pushed to master for 17.05, thanks Aleisha!
Comment 6 Katrin Fischer 2017-03-14 16:28:28 UTC
'Upping' this to be a bug fix as this fixes the former inconsistent behaviour.

This patch has been pushed to 16.11.x and will be in 16.11.05.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18135
bugs.koha-community.org
crawl=CC-MAIN-2022-33
37848
application/http; msgtype=response
sha1:DT7LGMK53NQH2KOO4PFJXNZARHFN6NHT
<urn:uuid:aca54578-e561-4e3d-8d2b-0a869939d9d2>
2022-08-15T16:22:05Z
72.14.190.217
text/html
sha1:AU7ADVHVXEJS7GPROB3P3TNBZFFHUX3D
<urn:uuid:d8d0c88d-cf2e-4fbb-aa28-dd8330e6b0d4>
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18135
response
<urn:uuid:51b8db6e-fcf9-467d-8f3d-eafb9c035b15>
isPartOf: CC-MAIN-2022-33
publisher: Common Crawl
description: Wide crawl of the web for August 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-227
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.4-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/