Skip to content

Commit

Permalink
Revert "Merge pull request #644 from nodesagency/hotfix/beforeValidat…
Browse files Browse the repository at this point in the history
…e-copy-data"

This reverts commit 0f54758, reversing
changes made to b4a42e4.
  • Loading branch information
lorenzo committed May 11, 2012
1 parent 2cea668 commit e4c88d8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/Cake/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -2125,7 +2124,6 @@ public function validateMany($data, $options = array()) {
}
$return[$key] = $validates;
}
$this->data = $data;
$this->validationErrors = $validationErrors;
if (!$options['atomic']) {
return $return;
Expand Down

0 comments on commit e4c88d8

Please sign in to comment.