Bugzilla – Attachment 99344 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 authorities.tt
Bug-23777-Use-Tojson-in-authoritiestt.patch (text/plain), 1.74 KB, created by
Martin Renvoize (ashimema)
on 2020-02-21 07:01:36 UTC
(
hide
)
Description:
Bug 23777: Use To.json in authorities.tt
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-02-21 07:01:36 UTC
Size:
1.74 KB
patch
obsolete
>From 129d5dfa6cadfe9476787b106ce31049cebef4b1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 12 Nov 2019 09:11:30 +0100 >Subject: [PATCH] Bug 23777: Use To.json in authorities.tt > >No fix here. > >Test plan: >Edit GENRE/FORM 040$a >With text: Original catalo'"ging age"'ncy >Save, you get the alert > >Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../intranet-tmpl/prog/en/modules/authorities/authorities.tt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >index bf2dffc6ca..55ddb49f4c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >@@ -1,4 +1,5 @@ > [% USE raw %] >+[% USE To %] > [% USE Asset %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Authorities › [% IF ( authid ) %]Modify authority #[% authid | html %] ([% authtypetext | html %])[% ELSE %]Adding authority ([% authtypetext | html %])[% END %]</title> >@@ -71,7 +72,7 @@ function AreMandatoriesNotOk(){ > [% FOREACH subfield_loo IN innerloo.subfield_loop %] > [% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]"); > tab.push("[% BIG_LOO.number | html %]"); >- label.push("[% subfield_loo.marc_lib | $raw |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]"); >+ label.push("[% To.json(subfield_loo.marc_lib) | $raw %]"); > [% END %] > [% END %] > [% END %] >-- >2.20.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 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