Skip to content

Loading…

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

Merged
merged 1 commit into from

2 participants

@jippi
CakePHP member
@lorenzo lorenzo merged commit b4a42e4 into cakephp:2.1
@lorenzo lorenzo added a commit that referenced this pull request
@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 added a commit that referenced this pull request
@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

    Another fix for Pull request 642

    jippi committed
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.