mirror of
https://github.com/Icinga/icinga-php-thirdparty.git
synced 2025-07-14 01:04:31 +02:00
patches/shardj-zf1-future:
Add fix for Zend_Form_Element::getValue()
This commit is contained in:
parent
44cd0d4612
commit
852798998b
@ -9,3 +9,14 @@
|
||||
{
|
||||
foreach ($this->getFilters() as $filter) {
|
||||
$value = $filter->filter($value);
|
||||
@@ -612,7 +612,9 @@ class Zend_Form_Element implements Zend_Validate_Interface
|
||||
$valueFiltered = $this->_value;
|
||||
|
||||
if ($this->isArray() && is_array($valueFiltered)) {
|
||||
- array_walk_recursive($valueFiltered, [$this, '_filterValue']);
|
||||
+ array_walk_recursive($valueFiltered, function (&$val, $key) {
|
||||
+ $this->_filterValue($val, $key);
|
||||
+ });
|
||||
} else {
|
||||
$this->_filterValue($valueFiltered, $valueFiltered);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user