Permalink
Browse files

Another fix for Pull request 642

  • Loading branch information...
1 parent 6bd7da3 commit 3b154fa32512317e19b79ab4bc2815c2f74f5796 @jippi jippi 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 3b154fa

Please sign in to comment.