Skip to content
Permalink
Browse files

use methods instead of array access to allow dot notation while assum…

…ing there is never null within $this->data->post[]/query[]
  • Loading branch information...
Jonas Hartmann
Jonas Hartmann committed Jul 17, 2016
1 parent 9b49d5a commit 4bbd72ea9cabc0c5abf56f170d99fe3485b981b8
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/View/Helper/FormHelper.php
@@ -2694,8 +2694,8 @@ public function getSourceValue($fieldname)
if ($valuesSource === 'context') {
return $this->_getContext()->val($fieldname);
}
if (isset($this->request->{$valuesSource}[$fieldname])) {
return $this->request->{$valuesSource}[$fieldname];
if ($this->request->{$valuesSource}($fieldname) !== null) {
return $this->request->{$valuesSource}($fieldname);
}
}
}

0 comments on commit 4bbd72e

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