Bugzilla – Attachment 167995 Details for
Bug 37152
Delete-confirm should not start with 'cud-'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37152: Deleting patron categories doesn't warn about categories in use
Bug-37152-Deleting-patron-categories-doesnt-warn-a.patch (text/plain), 1.53 KB, created by
Emily Lamancusa (emlam)
on 2024-06-21 20:26:04 UTC
(
hide
)
Description:
Bug 37152: Deleting patron categories doesn't warn about categories in use
Filename:
MIME Type:
Creator:
Emily Lamancusa (emlam)
Created:
2024-06-21 20:26:04 UTC
Size:
1.53 KB
patch
obsolete
>From 36cda359d0b9ea985102e0c66ebb2091de521b34 Mon Sep 17 00:00:00 2001 >From: Phil Ringnalda <phil@chetcolibrary.org> >Date: Fri, 21 Jun 2024 12:05:11 -0700 >Subject: [PATCH] Bug 37152: Deleting patron categories doesn't warn about > categories in use > >You can't delete a patron category when it is in use, but because the >script which handles delete confirmation is expecting the wrong op, >cud-delete_confirm rather than delete_confirm, you don't get any warning, >just a failure to delete error message. > >Test plan: > 1. Without the patch, Administration - Patron categories > 2. On the row for Staff, click Delete, Delete this category > 3. Note an error message telling you to check the logs for details > 4. Apply patch, restart_all > 5. With the patch, repeat steps 1-2, note that instead of a button for > Delete this category you get a warning that it is in use > 6. In the list of categories, row for Board, click Delete, Delete this category > 7. Note that the (unused) Board category was deleted > >Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >--- > admin/categories.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/admin/categories.pl b/admin/categories.pl >index 5495210b6d..c89fce0fba 100755 >--- a/admin/categories.pl >+++ b/admin/categories.pl >@@ -168,7 +168,7 @@ elsif ( $op eq 'cud-add_validate' ) { > $searchfield = q||; > $op = 'list'; > } >-elsif ( $op eq 'cud-delete_confirm' ) { >+elsif ( $op eq 'delete_confirm' ) { > > my $count = Koha::Patrons->search({ > categorycode => $categorycode >-- >2.34.1
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 37152
:
167987
|
167988
|
167989
|
167990
|
167993
|
167994
|
167995
|
167996
|
168104
|
168105
|
168106
|
168107