Bug 20772: Fix malformed class name
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Thu, 17 May 2018 10:29:49 +0000 (11:29 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Sat, 13 Oct 2018 11:34:32 +0000 (08:34 -0300)
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

index 4d9e6bc..41a7962 100644 (file)
                             <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>