diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index 9e4a8919e..a4b8c4f25 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -314,7 +314,8 @@ class FormHelper extends AppHelper { } $this->requestType = strtolower($options['type']); - $htmlAttributes['action'] = $this->url($options['action']); + + $action = $this->url($options['action']); unset($options['type'], $options['action']); if ($options['default'] == false) { @@ -351,7 +352,7 @@ class FormHelper extends AppHelper { } $this->setEntity($model . '.', true); - return $this->Html->useTag('form', $htmlAttributes) . $append; + return $this->Html->useTag('form', $action, $htmlAttributes) . $append; } /** diff --git a/lib/Cake/View/Helper/HtmlHelper.php b/lib/Cake/View/Helper/HtmlHelper.php index f7ea7d71b..298a08a39 100644 --- a/lib/Cake/View/Helper/HtmlHelper.php +++ b/lib/Cake/View/Helper/HtmlHelper.php @@ -38,7 +38,7 @@ class HtmlHelper extends AppHelper { 'metalink' => '', 'link' => '%s', 'mailto' => '%s', - 'form' => '
', 'input' => '', 'textarea' => '',