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

Marcel de Rooy <m.de.r...@rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m.de.r...@rijksmuseum.nl

--- Comment #5 from Marcel de Rooy <m.de.r...@rijksmuseum.nl> ---
Hi Marc,

What is the advantage of 
value="[%- category.enrolmentperiod IF category.enrolmentperiod -%]"
above e.g.
value="[% category.enrolmentperiod %]"  ?
I guess that if period == 0, the first one will leave the field empty?
Null and empty string will probably respond the same.

Note that the trailing IF does not increase readability. Before making this
kind of changes everywhere, is there a consensus to do so?

Also noting that you add chomps here (%-). Do we need them here?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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