Permalink
Browse files

Merge pull request #643 from nodesagency/hotfix/beforeValidate-copy-data

Hotfix/before validate copy data ( Another fix for Pull request 642 )
  • Loading branch information...
2 parents 6bd7da3 + 3b154fa commit b4a42e4a03a1c5a7321769636283ca163656b47f @lorenzo lorenzo committed May 9, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Model/Model.php
View
@@ -2044,6 +2044,7 @@ public function saveMany($data = null, $options = array()) {
if ($options['validate'] === 'first') {
$validates = $this->validateMany($data, $options);
+ $data = $this->data;
if ((!$validates && $options['atomic']) || (!$options['atomic'] && in_array(false, $validates, true))) {
return $validates;
}

0 comments on commit b4a42e4

Please sign in to comment.