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:
phpnut 2006-06-19 02:55:53 +00:00
parent a0743d40e7
commit b31c449167
2 changed files with 6 additions and 2 deletions

View file

@ -395,7 +395,9 @@ class DboMysql extends DboSource {
if (strpos($col, 'enum') !== false) {
return "enum($limit)";
}
if ($col == 'boolean') {
return $col;
}
return 'text';
}
/**

View file

@ -388,7 +388,9 @@ class DboMysqli extends DboSource {
if (strpos($col, 'enum') !== false) {
return "enum($limit)";
}
if ($col == 'boolean') {
return $col;
}
return 'text';
}
/**