Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Changing $this->_defaults['model'] to $this->_defaults['presetForm'][…
Browse files Browse the repository at this point in the history
…'model']
  • Loading branch information
Marcin committed Jun 25, 2014
1 parent 7719086 commit 251d233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Controller/Component/PrgComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ public function init(Controller $controller) {
}

$model = $this->controller->modelClass;
if (!empty($this->_defaults['model'])) {
$model = $this->_defaults['model'];
if (!empty($this->_defaults['presetForm']['model'])) {
$model = $this->_defaults['presetForm']['model'];
}

if ($this->controller->presetVars === true) {
Expand Down

0 comments on commit 251d233

Please sign in to comment.