mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
97cae1c208
commit
5138bcda38
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue