Skip to content

Commit

Permalink
Solves a in non-object state bug
Browse files Browse the repository at this point in the history
  • Loading branch information
terwey committed Jun 12, 2014
1 parent 1328df4 commit 7fc146d
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -43,7 +43,8 @@ function (FormEvent $event) {
$fieldType = null;
if (!is_null($data)) {
$fieldType = $data->getFieldType();
if ($data->isRequired() && !$this->patch) {
$patch = (!is_null($this)) ? !$this->patch : false;
if ($data->isRequired() && $patch) {
$defaultRequired = true;
$constraints = array(
new NotBlank
Expand Down

0 comments on commit 7fc146d

Please sign in to comment.