Skip to content
Permalink
Browse files

FormHelper::create should use domId to determine the default ID of th…

…e form tag.

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information...
Cottser authored and markstory committed Jul 14, 2010
1 parent e382a1c commit 15435e9d6fc0806337e651b1172f48be01a91344
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/view/helpers/form.php
2 cake/libs/view/helpers/form.php 100755 → 100644
@@ -260,7 +260,7 @@ function create($model = null, $options = array()) {
0 => $id
);
if (!empty($options['action']) && !isset($options['id'])) {
$options['id'] = $model . Inflector::camelize($options['action']) . 'Form';
$options['id'] = $this->domId(Inflector::camelize($options['action']) . 'Form');
}
$options['action'] = array_merge($actionDefaults, (array)$options['url']);
} elseif (is_string($options['url'])) {

0 comments on commit 15435e9

Please sign in to comment.
You can’t perform that action at this time.