Skip to content

Commit

Permalink
patches/shardj-zf1-future: Add fix for Zend_Form_Element::getValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 authored and nilmerg committed Oct 4, 2023
1 parent 44cd0d4 commit 8527989
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions patches/shardj-zf1-future.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 8527989

Please sign in to comment.