Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Re-adding primaryKey detection support to FormHelper, it was removed …
…mistakenly in last refactor
  • Loading branch information
lorenzo committed Aug 11, 2011
1 parent eaa0163 commit 3d46172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -200,7 +200,7 @@ protected function _introspectModel($model, $key, $field = null) {
}

if ($key === 'key') {
return $this->fieldset[$model]['key'];
return $this->fieldset[$model]['key'] = $object->primaryKey;
}

if ($key === 'fields') {
Expand Down

0 comments on commit 3d46172

Please sign in to comment.