diff --git a/Model/Behavior/KeyvalueBehavior.php b/Model/Behavior/KeyvalueBehavior.php index 1db04b2..c6bd4ce 100644 --- a/Model/Behavior/KeyvalueBehavior.php +++ b/Model/Behavior/KeyvalueBehavior.php @@ -83,7 +83,7 @@ public function saveSection($Model, $foreignKey = null, $data = null, $section = foreach($details as $key => $value) { $newDetail = array(); $Model->recursive = -1; - $tmp = $this->find('first', array( + $tmp = $Model->find('first', array( 'conditions' => array( $this->settings[$model->alias]['foreignKey'] => $foreignKey, 'field' => $section . '.' . $key),