mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
parent
c31cab39cd
commit
eb3063e36d
@ -521,6 +521,14 @@ class Form extends Zend_Form
|
|||||||
|
|
||||||
$el = parent::createElement($type, $name, $options);
|
$el = parent::createElement($type, $name, $options);
|
||||||
|
|
||||||
|
$el->addPrefixPaths(array(
|
||||||
|
array(
|
||||||
|
'prefix' => 'Icinga\\Web\\Form\\Validator\\',
|
||||||
|
'path' => Icinga::app()->getLibraryDir('Icinga/Web/Form/Validator'),
|
||||||
|
'type' => $el::VALIDATE
|
||||||
|
)
|
||||||
|
));
|
||||||
|
|
||||||
if (($description = $el->getDescription()) !== null && ($label = $el->getDecorator('label')) !== false) {
|
if (($description = $el->getDescription()) !== null && ($label = $el->getDecorator('label')) !== false) {
|
||||||
$label->setOptions(array(
|
$label->setOptions(array(
|
||||||
'title' => $description,
|
'title' => $description,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user