From 1c8ec459b6d9f6ea719e635856629f5dcdf52ea2 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 29 Sep 2009 22:46:45 -0400 Subject: [PATCH] Removing 'id' key param in FormHelper::create() it normally only served to make routing more complex. Removal also enables reverse routing to work with scaffolding. --- cake/libs/view/helpers/form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/view/helpers/form.php b/cake/libs/view/helpers/form.php index 899455aa7c3..a8865091a5a 100644 --- a/cake/libs/view/helpers/form.php +++ b/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';