mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
form: Ignore note elments when retrieving values at form level
This commit is contained in:
parent
fa9bd59565
commit
bbee06b57f
@ -7,7 +7,7 @@ namespace Icinga\Web\Form\Element;
|
|||||||
use Zend_Form_Element;
|
use Zend_Form_Element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements note element for Zend forms
|
* A note
|
||||||
*/
|
*/
|
||||||
class Note extends Zend_Form_Element
|
class Note extends Zend_Form_Element
|
||||||
{
|
{
|
||||||
@ -23,16 +23,24 @@ class Note extends Zend_Form_Element
|
|||||||
protected $_disableLoadDefaultDecorators = true;
|
protected $_disableLoadDefaultDecorators = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the view helper
|
* Form view helper to use for rendering
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public $helper = 'formNote';
|
public $helper = 'formNote';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true to ensure redrawing
|
* Ignore element when retrieving values at form level
|
||||||
|
*
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
protected $_ignore = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validate element value (pseudo)
|
||||||
|
*
|
||||||
|
* @param mixed $value Ignored
|
||||||
*
|
*
|
||||||
* @param mixed $value The value of to validate (ignored)
|
|
||||||
* @return bool Always true
|
* @return bool Always true
|
||||||
*/
|
*/
|
||||||
public function isValid($value)
|
public function isValid($value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user