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-67ecbb4d7f56master
parent
dbcd39679e
commit
4b142ecd95
|
@ -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> }, ... ]
|
||||
|
|
Loading…
Reference in New Issue