Permalink
Browse files

Removing 'id' key param in FormHelper::create() it normally only serv…

…ed to make routing more complex. Removal also enables reverse routing to work with scaffolding.
  • Loading branch information...
1 parent c69410d commit 1c8ec459b6d9f6ea719e635856629f5dcdf52ea2 @markstory markstory committed Sep 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/view/helpers/form.php
@@ -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';

0 comments on commit 1c8ec45

Please sign in to comment.