Permalink
Browse files

Making validateAssociated overwrite data consistently with validateMany

  • Loading branch information...
lorenzo committed May 10, 2012
1 parent 6da2fe8 commit b54dc69f6405ffb1a6a26524978594305d93ccd0
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Model.php
View
@@ -2326,7 +2326,7 @@ public function validateAssociated(&$data, $options = array()) {
}
if (empty($options['deep'])) {
- $data[$this->alias] = $this->data[$this->alias];
+ $data = $this->data;
} else {
$modelData = $this->data;
$recordData = $modelData[$this->alias];

0 comments on commit b54dc69

Please sign in to comment.