Bugzilla – Attachment 165361 Details for
Bug 36639
CSRF: Fix deleting authority from authority detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36639: Fix delete on authorities detail
Bug-36639-Fix-delete-on-authorities-detail.patch (text/plain), 1.98 KB, created by
Jonathan Druart
on 2024-04-23 09:40:26 UTC
(
hide
)
Description:
Bug 36639: Fix delete on authorities detail
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-04-23 09:40:26 UTC
Size:
1.98 KB
patch
obsolete
>From 55768dd1eb621d58b79f445b22e5e50d6f964306 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 18 Apr 2024 09:43:19 +0000 >Subject: [PATCH] Bug 36639: Fix delete on authorities detail > >Test plan: >Verify that you can delete an authority from detail page again. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc | 3 +-- > .../intranet-tmpl/prog/en/modules/authorities/detail.tt | 5 +++++ > 2 files changed, 6 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc >index 9b2ca85c9bc..78c5a982c5f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc >@@ -49,8 +49,7 @@ $(document).ready(function () { > }); > > $("#delAuth").click(function(){ >- confirm_deletion(); >- return false; >+ $('.form_delete').submit(); > }); > > $("#z3950_new").click(function(e){ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >index ab478ac6e12..bd907479521 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >@@ -48,6 +48,11 @@ > [% INCLUDE 'messages.inc' %] > > [% INCLUDE 'authorities-toolbar.inc' %] >+ <form action="/cgi-bin/koha/authorities/authorities-home.pl" class="form_delete" method="post"> >+ [% INCLUDE 'csrf-token.inc' %] >+ <input type="hidden" name="op" value="cud-delete"/> >+ <input type="hidden" name="authid" value="[% authid | html %]"/> >+ </form> > > [% IF ( displayhierarchy ) %] > <div id="hierarchies"> >-- >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 36639
:
165058
| 165361