Bugzilla – Attachment 165058 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.94 KB, created by
Marcel de Rooy
on 2024-04-18 09:44:30 UTC
(
hide
)
Description:
Bug 36639: Fix delete on authorities detail
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-04-18 09:44:30 UTC
Size:
1.94 KB
patch
obsolete
>From e3e4a94817b430429a9951fcecd55e32a2dfde07 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 >Content-Type: text/plain; charset=utf-8 > >Test plan: >Verify that you can delete an authority from detail page again. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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 9b2ca85c9b..78c5a982c5 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 ab478ac6e1..bd90747952 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.30.2
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