]> git.koha-community.org Git - koha.git/commit
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)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 22 May 2009 12:43:46 +0000 (07:43 -0500)
commitd832ae4bc335f182fa7897d052e2498a5049726a
tree4b18d9a637c5467a52fd5266d81fc9e97c5a5f49
parentaa8422889afebe39d3bbd3c1cfbe2f5fc52712ab
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>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tmpl