mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Added fix for Ticket #1016
Check box in edit view does not work. Model::column() was returning text instead of boolean for the column type git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3136 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
a0743d40e7
commit
b31c449167
2 changed files with 6 additions and 2 deletions
|
@ -395,7 +395,9 @@ class DboMysql extends DboSource {
|
|||
if (strpos($col, 'enum') !== false) {
|
||||
return "enum($limit)";
|
||||
}
|
||||
|
||||
if ($col == 'boolean') {
|
||||
return $col;
|
||||
}
|
||||
return 'text';
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -388,7 +388,9 @@ class DboMysqli extends DboSource {
|
|||
if (strpos($col, 'enum') !== false) {
|
||||
return "enum($limit)";
|
||||
}
|
||||
|
||||
if ($col == 'boolean') {
|
||||
return $col;
|
||||
}
|
||||
return 'text';
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue