From 9be44a5df1412a4e2d0b95aed987cc8d0ec74b77 Mon Sep 17 00:00:00 2001 From: phpnut Date: Fri, 1 Jun 2007 22:12:55 +0000 Subject: [PATCH] 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 --- cake/libs/controller/controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/controller/controller.php b/cake/libs/controller/controller.php index 8754d8c19..928c0bef8 100644 --- a/cake/libs/controller/controller.php +++ b/cake/libs/controller/controller.php @@ -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();