From 65ae02999b501a21a45443d4b6bcb1e2d15a57ba Mon Sep 17 00:00:00 2001 From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> Date: Thu, 17 May 2018 11:29:49 +0100 Subject: [PATCH] Bug 20772: Fix malformed class name Supplier metadata elements have a dynamically formed class name, part of the name is formed from the metadata key, this breaks if the key has a space, so we replace spaces Signed-off-by: Barry Cannon <bc@interleaf.ie> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> --- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index 4d9e6bc5ab..41a79620ca 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -548,7 +548,7 @@ <div class="rows"> <h4>Details from supplier ([% request.backend | html %])</h4> [% FOREACH meta IN request.metadata %] - <div class="requestmeta-[% meta.key | html %]"> + <div class="requestmeta-[% meta.key.replace('\s','_') | html %]"> <span class="label">[% meta.key | html %]:</span> [% meta.value | html %] </div> -- 2.19.1