From 35c2a7ef3153becdc76f2b2cb5097524bb81af13 Mon Sep 17 00:00:00 2001 From: Haithem Ben Ghorbal Date: Thu, 29 May 2014 02:36:13 +0200 Subject: [PATCH] restore previous (erroneous ?) behaviour --- lib/Cake/Model/Model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 69a39af2c..31fd36459 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -1869,7 +1869,9 @@ class Model extends Object implements CakeEventListener { } } - $success = $this->data; + if (!empty($this->data)) { + $success = $this->data; + } $this->_clearCache(); $this->validationErrors = array();