Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Hotfix/before validate copy data ( Another fix for Pull request 642 ) #643

Merged
merged 1 commit into from

2 participants

@jippi
Collaborator
@lorenzo lorenzo merged commit b4a42e4 into from
@lorenzo lorenzo referenced this pull request from a commit
@lorenzo lorenzo Revert "Merge pull request #643 from nodesagency/hotfix/beforeValidat…
…e-copy-data"

This reverts commit b4a42e4, reversing
changes made to 6bd7da3.
07bf73e
@lorenzo lorenzo referenced this pull request from a commit
@lorenzo lorenzo Revert "Merge pull request #643 from nodesagency/hotfix/beforeValidat…
…e-copy-data"

This reverts commit b4a42e4, reversing
changes made to 6bd7da3.
2cea668
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 9, 2012
  1. @jippi
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Cake/Model/Model.php
View
1  lib/Cake/Model/Model.php
@@ -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;
}
Something went wrong with that request. Please try again.