followup to previous patch - don't use TMPL_IF EXPR
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 22 May 2009 12:41:22 +0000 (07:41 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:18:58 +0000 (23:18 +0200)
commit493cb8c6510410bec834c4832aa0c0d760b7fca2
tree5362e4c06e7330452686b9439c2700dcc264c6dd
parent868d21d9059d780863dfda58733068ff00cf1dd4
followup to previous patch - don't use TMPL_IF EXPR

Because of the way that HTML::Template::Pro evaluates
expressions, any variable referred to in a TMPL_IF EXPR
must be be present when the template is parsed, otherwise
you get Apache error log warnings like this:

non-initialized variable new_subfield

For a simple flag check, TMPL_IF NAME="new_subfield" is sufficient.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tmpl