Bug 75890 - Remove overlong IF-ELSE, move error messages to named blocks

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1450 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2011-10-26 12:21:57 +00:00
parent dbcd39679e
commit 4b142ecd95
1 changed files with 3 additions and 0 deletions

View File

@ -807,6 +807,9 @@ sub create {
field_descs => Bugzilla->messages->{field_descs},
lc_messages => Bugzilla->messages,
# Check if a named block of the current template exists
block_exists => [ sub { my ($context) = @_; return sub { $context->{BLOCKS}->{$1} && 1 } }, 1 ],
# HTML <select>
# html_select(name, { <attr> => <value> }, <selected value>, (
# [ { id => <option value>, name => <option text> }, ... ]