Bugzilla – Attachment 154748 Details for
Bug 34601
Cannot manage suggestions without CSRF error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34601: (QA follow-up) Fix edit/delete links in toolbar
Bug-34601-QA-follow-up-Fix-editdelete-links-in-too.patch (text/plain), 2.01 KB, created by
Katrin Fischer
on 2023-08-24 19:50:09 UTC
(
hide
)
Description:
Bug 34601: (QA follow-up) Fix edit/delete links in toolbar
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-08-24 19:50:09 UTC
Size:
2.01 KB
patch
obsolete
>From e0465baf7c45edfa03cddfb3839c1640982c9ee2 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Thu, 24 Aug 2023 19:48:44 +0000 >Subject: [PATCH] Bug 34601: (QA follow-up) Fix edit/delete links in toolbar > >We also need to fix the links in the toolbar visible when >'viewing' the suggestion. > >1) Create a suggestion >2) Click on the title >3) Click edit > CSRF error >4) Click delete link in toolbar > CSRF error >5) Apply patch and repeat > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >index 9fece69d0b..ab72c2dfc9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >@@ -98,8 +98,8 @@ > <div class="col-md-8 col-md-offset-2"> > > <div id="toolbar" class="btn-toolbar"> >- <a class="btn btn-default" id="editsuggestion" href="suggestion.pl?op=edit&suggestionid=[% suggestionid | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> >- <a class="btn btn-default deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestionid | html %]"><i class="fa fa-trash-can"></i> Delete</a> >+ <a class="btn btn-default" id="editsuggestion" href="suggestion.pl?op=edit&csrf_token=[% csrf_token | html %]&suggestionid=[% suggestionid | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> >+ <a class="btn btn-default deletesuggestion" href="suggestion.pl?op=delete&csrf_token=[% csrf_token | html %]&suggestionid=[% suggestionid | html %]"><i class="fa fa-trash-can"></i> Delete</a> > </div> > > <fieldset class="rows"> >-- >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 34601
:
154719
|
154720
|
154724
|
154747
| 154748 |
154762
|
154951
|
156122