updating form helper field map, if var $map is defined it will use that, closes #3976

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6418 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-01-29 16:52:15 +00:00
parent 97cae1c208
commit 5138bcda38

View file

@ -523,10 +523,12 @@ class FormHelper extends AppHelper {
'string' => 'text', 'datetime' => 'datetime',
'boolean' => 'checkbox', 'timestamp' => 'datetime',
'text' => 'textarea', 'time' => 'time',
'date' => 'date'
'date' => 'date', 'float' => 'text'
);
if (isset($map[$type])) {
if (isset($this->map[$type])) {
$options['type'] = $this->map[$type];
} elseif (isset($map[$type])) {
$options['type'] = $map[$type];
}
if ($this->field() == $primaryKey) {