From 4ce3f2160834e31fc003d695c0723439363bf8f3 Mon Sep 17 00:00:00 2001 From: DarkAngelBGE Date: Tue, 23 Sep 2008 18:50:27 +0000 Subject: [PATCH] adding missing options array in Model::beforeValidate(0 and Model::beforeSave() as they are called with them out of the model and it is good practice, although they are meant to be overriden; closes #5470 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7650 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/model/model.php b/cake/libs/model/model.php index 305c7d548..dab196d4c 100644 --- a/cake/libs/model/model.php +++ b/cake/libs/model/model.php @@ -2607,7 +2607,7 @@ class Model extends Overloadable { * @return boolean True if the operation should continue, false if it should abort * @access public */ - function beforeSave() { + function beforeSave($options = array()) { return true; } /** @@ -2641,7 +2641,7 @@ class Model extends Overloadable { * @return boolean True if validate operation should continue, false to abort * @access public */ - function beforeValidate() { + function beforeValidate($options = array()) { return true; } /**