https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21279

Marcel de Rooy <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA
                 CC|                            |[email protected]

--- Comment #3 from Marcel de Rooy <[email protected]> ---
-                            <div class="enable_cost_input" data-cost-id="[%
bt.id | html %]">[% bt.disabled ? '&nbsp;' : bt.value | html %]</div>
+                            [% SET bt_value = '&nbsp;' %]
+                            [% UNLESS bt.disabled %][% bt_value = BLOCK %][%
bt.value | html %][% END %][% END %]
+                            <div class="enable_cost_input" data-cost-id="[%
bt.id | html %]">[% bt_value | $raw %]</div>

Looks overcomplicated to me. Assigning &nbsp; to template vars does not seem
the way to go imo. No need to pass &nbsp; to raw too. This is just regular
template contents.
Why not:

<div ..> [% IF bt.disabled %]&nbsp;[% ELSE %][% bt.value | html %]</div>

Looks simpler to me :) What do you think?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to