mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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.
This commit is contained in:
parent
c69410d809
commit
1c8ec459b6
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ class FormHelper extends AppHelper {
|
||||||
'plugin' => $this->plugin,
|
'plugin' => $this->plugin,
|
||||||
'controller' => $view->viewPath,
|
'controller' => $view->viewPath,
|
||||||
'action' => $options['action'],
|
'action' => $options['action'],
|
||||||
'id' => $id
|
0 => $id
|
||||||
);
|
);
|
||||||
if (!empty($options['action']) && !isset($options['id'])) {
|
if (!empty($options['action']) && !isset($options['id'])) {
|
||||||
$options['id'] = $model . Inflector::camelize($options['action']) . 'Form';
|
$options['id'] = $model . Inflector::camelize($options['action']) . 'Form';
|
||||||
|
|
Loading…
Reference in a new issue