Navigation Menu

Skip to content

Commit

Permalink
Removing 'id' key param in FormHelper::create() it normally only serv…
Browse files Browse the repository at this point in the history
…ed to make routing more complex. Removal also enables reverse routing to work with scaffolding.
  • Loading branch information
markstory committed Sep 30, 2009
1 parent c69410d commit 1c8ec45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/view/helpers/form.php
Expand Up @@ -198,7 +198,7 @@ function create($model = null, $options = array()) {
'plugin' => $this->plugin,
'controller' => $view->viewPath,
'action' => $options['action'],
'id' => $id
0 => $id
);
if (!empty($options['action']) && !isset($options['id'])) {
$options['id'] = $model . Inflector::camelize($options['action']) . 'Form';
Expand Down

0 comments on commit 1c8ec45

Please sign in to comment.