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:
phpnut 2007-06-01 22:12:55 +00:00
parent 772c4714cd
commit 9be44a5df1

View file

@ -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();