Bugzilla – Attachment 95282 Details for
Bug 23777
Text converted to html entity codes in cataloguing edit form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23777: Use To.json in results.tt
Bug-23777-Use-Tojson-in-resultstt.patch (text/plain), 1.36 KB, created by
Jonathan Druart
on 2019-11-12 08:37:29 UTC
(
hide
)
Description:
Bug 23777: Use To.json in results.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-11-12 08:37:29 UTC
Size:
1.36 KB
patch
obsolete
>From a4e6d695b6bf6fe888083e5d624e82a1909adc81 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 12 Nov 2019 09:24:42 +0100 >Subject: [PATCH] Bug 23777: Use To.json in results.tt > >Test plan: >Search for a string with quote and confirm that it is correctly >highlighted in the result list. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index 2f8d5dbaec..27d55e409e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -1,4 +1,5 @@ > [% USE raw %] >+[% USE To %] > [% USE Asset %] > [% USE Koha %] > [% USE Biblio %] >@@ -772,7 +773,7 @@ > > [% IF ( query_desc ) %] > toHighlight = $("p,span.results_summary,a.title"); >- var query_desc = "[% query_desc |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; >+ var query_desc = "[% To.json( query_desc ) | $raw %]"; > q_array = query_desc.split(" "); > // ensure that we don't have "" at the end of the array, which can > // break the highlighter >-- >2.11.0
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 23777
:
95275
|
95279
|
95280
|
95281
|
95282
|
95283
|
95284
|
97685
|
97686
|
97687
|
97688
|
97689
|
97690
|
97691
|
98698
|
98699
|
98700
|
99341
|
99342
|
99343
|
99344
|
99345
|
99346
|
99347
|
99348
|
99570