Bugzilla – Attachment 174051 Details for
Bug 38328
Cannot delete ILL batch statuses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38328: Cannot delete ILL batch statuses
Bug-38328-Cannot-delete-ILL-batch-statuses.patch (text/plain), 2.64 KB, created by
Biblibre Sandboxes
on 2024-11-05 23:39:22 UTC
(
hide
)
Description:
Bug 38328: Cannot delete ILL batch statuses
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2024-11-05 23:39:22 UTC
Size:
2.64 KB
patch
obsolete
>From 85cb3791026945cb1941a8b06ae71ab1e34078af Mon Sep 17 00:00:00 2001 >From: Phil Ringnalda <phil@chetcolibrary.org> >Date: Fri, 1 Nov 2024 11:22:59 -0700 >Subject: [PATCH] Bug 38328: Cannot delete ILL batch statuses > >You are permitted to delete ILL batch statuses that you (rather than the >system) add, but the UI didn't get the CSRF memo about delete ops needing to >be POSTs with op="cud-delete", so it still uses a GET of ?op="delete" and >fails. > >Test plan: > 1. Set the preference ILLModule to 'Enable' > 2. Administration - Interlibrary loan batch statuses - New batch status > 3. Give it a name, an uppercase code, and Save > 4. Click the Delete button to the right of your new status > 5. The page is blank, and if you navigate back to Interlibrary loan batch > statuses, you'll see that yours was not deleted > 6. Apply patch, reload page > 7. Click the Delete button to the right of your new status, verify it is > deleted > >Sponsored-by: Chetco Community Public Library >Signed-off-by: Sam Sowanick <sam.sowanick@corvallisoregon.gov> >--- > .../intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt >index 12ea56085f..27c6d3392f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt >@@ -134,7 +134,7 @@ > <td class="actions"> > <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/ill_batch_statuses.pl?op=add_form&code=[% status.code | uri %]"><i class="fa fa-pencil"></i> Edit</a> > [% IF !status.is_system %] >- <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/ill_batch_statuses.pl?op=delete&code=[% status.code | uri %]"><i class="fa fa-delete"></i> Delete</a> >+ <a class="btn btn-default btn-xs submit-form-link" href="#" data-action="/cgi-bin/koha/admin/ill_batch_statuses.pl" data-method="post" data-op="cud-delete" data-code="[% status.code | html %]"><i class="fa fa-delete"></i> Delete</a> > [% END %] > </td> > </tr> >@@ -160,6 +160,7 @@ > > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/admin-menu.js") | $raw %] >+ [% Asset.js("js/form-submit.js") | $raw %] > [% INCLUDE 'datatables.inc' %] > [% END %] > >-- >2.39.5
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 38328
:
173888
|
174051
|
174463