mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing issue with bad key set in Controller::generateFieldNames() causing HABTM not to save
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5229 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
772c4714cd
commit
9be44a5df1
1 changed files with 2 additions and 2 deletions
|
@ -736,7 +736,7 @@ class Controller extends Object {
|
|||
$fieldNames[$column['name']]['label'] = Inflector::humanize($humanName);
|
||||
$fieldNames[$column['name']]['prompt'] = $fieldNames[$column['name']]['label'];
|
||||
|
||||
$fieldNames[$column['name']]['tagName'] = $model . '/' . $column['name'];
|
||||
$fieldNames[$column['name']]['fieldName'] = $model . '.' . $column['name'];
|
||||
$fieldNames[$column['name']]['name'] = $column['name'];
|
||||
$fieldNames[$column['name']]['class'] = 'optional';
|
||||
$validationFields = $modelObj->validate;
|
||||
|
@ -842,7 +842,7 @@ class Controller extends Object {
|
|||
$fieldNames[$associationName]['prompt'] = $fieldNames[$associationName]['label'];
|
||||
$fieldNames[$associationName]['type'] = "select";
|
||||
$fieldNames[$associationName]['multiple'] = "multiple";
|
||||
$fieldNames[$associationName]['tagName'] = $associationName . '/' . $associationName;
|
||||
$fieldNames[$associationName]['fieldName'] = $associationName . '.' . $associationName;
|
||||
$fieldNames[$associationName]['name'] = $associationName;
|
||||
$fieldNames[$associationName]['class'] = 'optional';
|
||||
$fieldNames[$associationName]['options'] = $otherModelObj->generateList();
|
||||
|
|
Loading…
Reference in a new issue