Skip to content

Commit

Permalink
Another fix for Pull request 642
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi authored and lorenzo committed May 11, 2012
1 parent 484c3ec commit fbd2132
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Model/Model.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit fbd2132

Please sign in to comment.