Bug 11897: Translatability and wrong escaping fix
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 Oct 2018 14:34:42 +0000 (11:34 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 9 Oct 2018 15:46:08 +0000 (15:46 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt

index 25f9b38..e54142f 100644 (file)
                                                 <a class="btn btn-default btn-xs" disabled>
                                             [% END %]
                                                 <i class="fa fa-fire"></i>
-                                                [% item.indemand ? 'Remove &quot;In demand&quot;' : 'Add &quot;In demand&quot;' | html %]
+                                                [% IF item.indemand %]
+                                                <span>Remove &quot;In demand&quot;</span>
+                                                [% ELSE %]
+                                                <span>Add &quot;In demand&quot;</span>
+                                                [% END %]
                                             </a>
                                             [% IF !in_transit %]
                                                 <a class="btn btn-default btn-xs" href="?op=confirm_remove_from_rota&amp;stage_id=[% item.stage.stage_id | uri %]&amp;item_id=[% item.id | uri %]&amp;rota_id=[% rota.id | uri %]">