Skip to content
Permalink
Browse files

Revert "Merge pull request #644 from nodesagency/hotfix/beforeValidat…

…e-copy-data"

This reverts commit 0f54758, reversing
changes made to b4a42e4.
  • Loading branch information...
lorenzo committed May 9, 2012
1 parent 07bf73e commit 12ae03b87655059eb94ede1a58579b64fdf33ed0
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/Cake/Model/Model.php
@@ -2116,7 +2116,6 @@ public function validateMany($data, $options = array()) {
} else {
$validates = $this->create($record) && $this->validates($options);
}
$data[$key] = $this->data;
if ($validates === false || (is_array($validates) && in_array(false, $validates, true))) {
$validationErrors[$key] = $this->validationErrors;
$validates = false;
@@ -2125,7 +2124,6 @@ public function validateMany($data, $options = array()) {
}
$return[$key] = $validates;
}
$this->data = $data;
$this->validationErrors = $validationErrors;
if (!$options['atomic']) {
return $return;

0 comments on commit 12ae03b

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.