diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index a96d29c2d..c7f61fbc1 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -22,7 +22,7 @@ App::uses('ClassRegistry', 'Utility'); App::uses('Validation', 'Utility'); App::uses('String', 'Utility'); -App::uses('Set', 'Utility'); +App::uses('Hash', 'Utility'); App::uses('BehaviorCollection', 'Model'); App::uses('ModelBehavior', 'Model'); App::uses('ConnectionManager', 'Model'); @@ -2873,7 +2873,7 @@ class Model extends Object implements CakeEventListener { unset($query['conditions'][$field . ' <']); $return = array(); if (isset($results[0])) { - $prevVal = Set::extract('/' . str_replace('.', '/', $field), $results[0]); + $prevVal = Hash::get($results[0], $field); $query['conditions'][$field . ' >='] = $prevVal[0]; $query['conditions'][$field . ' !='] = $value; $query['limit'] = 2; diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index 21f245e19..099706f5e 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -14,6 +14,7 @@ */ App::uses('AppHelper', 'View/Helper'); +App::uses('Hash', 'Utility'); /** * Form helper library. @@ -965,7 +966,7 @@ class FormHelper extends AppHelper { public function input($fieldName, $options = array()) { $this->setEntity($fieldName); - $options = Set::merge( + $options = Hash::merge( array('before' => null, 'between' => null, 'after' => null, 'format' => null), $this->_inputDefaults, $options