Bugzilla – Attachment 147727 Details for
Bug 32675
Cannot add a guarantor when there is a single quote in the guarantor attributes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32675: [alternative patch] Fix guarantor selection when simple quote present
Bug-32675-alternative-patch-Fix-guarantor-selectio.patch (text/plain), 2.30 KB, created by
Nick Clemens (kidclamp)
on 2023-03-03 19:16:30 UTC
(
hide
)
Description:
Bug 32675: [alternative patch] Fix guarantor selection when simple quote present
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-03-03 19:16:30 UTC
Size:
2.30 KB
patch
obsolete
>From 54b7f6566b77d8d52c315a0201a6b5790cf93ece Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 22 Feb 2023 16:31:54 +0100 >Subject: [PATCH] Bug 32675: [alternative patch] Fix guarantor selection when > simple quote present > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index 4078ebf65a..6651424b83 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -612,7 +612,11 @@ > [% FOR action IN actions %] > [% SWITCH action %] > [% CASE 'select' %] >- action_node += '<a href="#" class="btn btn-default btn-xs select_user" data-borrowernumber="' + patron_id + '">Select</a><input type="hidden" id="borrower_data' + patron_id + '" name="borrower_data'+ patron_id + '" value=\''+JSON.stringify(row)+'\' />'; >+ let patron_str = JSON.stringify(row); >+ action_node += '<a href="#" class="btn btn-default btn-xs select_user" data-borrowernumber="' + patron_id + '">Select</a>'; >+ let input_node = $('<input type="hidden" id="borrower_data' + patron_id + '" name="borrower_data'+ patron_id + '"/>'); >+ $(input_node).val(patron_str); >+ action_node += $(input_node).prop('outerHTML'); > [% CASE 'add' %] > action_node += '<a href="#" class="btn btn-default btn-xs add_user" data-borrowernumber="' + patron_id + '" data-firstname="' + encodeURIComponent(row.firstname) + '" data-surname="' + encodeURIComponent(row.surname) + '">Add</a><input type="hidden" id="borrower_data' + patron_id + '" name="borrower_data'+ patron_id + '" />'; > [% CASE 'edit' %] >-- >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 32675
:
145403
|
145404
|
145490
|
145880
|
147169
|
147699
| 147727