From 3b154fa32512317e19b79ab4bc2815c2f74f5796 Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Wed, 9 May 2012 23:34:37 +0200 Subject: [PATCH] Another fix for Pull request 642 --- lib/Cake/Model/Model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 235ae7ff1..43c6d04e0 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -2044,6 +2044,7 @@ class Model extends Object implements CakeEventListener { 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; }