Skip to content

Commit

Permalink
WysiwygBehavior setupメソッド一部修正
Browse files Browse the repository at this point in the history
fields定義の誤りと、未設定時の回避対応
  • Loading branch information
otokomae committed Mar 25, 2016
1 parent 525d94a commit 706d37d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Model/Behavior/WysiwygBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class WysiwygBehavior extends ModelBehavior {
* @return void
*/
public function setup(Model $model, $config = array()) {
$this->_fields = $config['_fields'];
if (isset($config['fields'])) {
$this->_fields = $config['fields'];
}
}

}

0 comments on commit 706d37d

Please sign in to comment.