Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit e4c88d8cf9c506cf33091a4a02c4261017bcb707 1 parent 2cea668
@lorenzo lorenzo authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  lib/Cake/Model/Model.php
View
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;
Please sign in to comment.
Something went wrong with that request. Please try again.