Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge branch 'hotfix/235'

Close #235
  • Loading branch information
michalbundyra committed Oct 4, 2019
2 parents 507bac2 + 382ff1f commit d75da0ef1771956b8db3f09f0079cd01772a5e23
Showing with 7 additions and 2 deletions.
  1. +1 −1 CHANGELOG.md
  2. +6 −1 src/Form.php
@@ -22,7 +22,7 @@ All notable changes to this project will be documented in this file, in reverse

### Fixed

- Nothing.
- [#235](https://github.com/zendframework/zend-form/pull/235) fixes PHP 7.4 compatibility.

## 2.14.2 - 2019-10-03

@@ -364,7 +364,12 @@ public function bindValues(array $values = [], array $validationGroup = null)
$data = array_key_exists($this->baseFieldset->getName(), $data)
? $data[$this->baseFieldset->getName()]
: [];
$this->object = $this->baseFieldset->bindValues($data, $validationGroup[$this->baseFieldset->getName()]);
$this->object = $this->baseFieldset->bindValues(
$data,
isset($validationGroup[$this->baseFieldset->getName()])
? $validationGroup[$this->baseFieldset->getName()]
: []
);
} else {
$this->object = parent::bindValues($data, $validationGroup);
}

0 comments on commit d75da0e

Please sign in to comment.
You can’t perform that action at this time.