mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
/me thinks sdevore is the only one still using php4 so he helping debug bake model validations, with much more to come
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6582 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d4860f4c1d
commit
d8a7097490
1 changed files with 2 additions and 2 deletions
|
@ -251,7 +251,7 @@ class ModelTask extends Shell {
|
|||
foreach ($options as $key => $option) {
|
||||
if ($option{0} != '_' && strtolower($option) != 'getinstance') {
|
||||
$prompt .= "{$skip} - {$option}\n";
|
||||
$choices[$skip] = $option;
|
||||
$choices[$skip] = strtolower($option);
|
||||
$skip++;
|
||||
}
|
||||
}
|
||||
|
@ -265,7 +265,7 @@ class ModelTask extends Shell {
|
|||
if ($fieldName == 'email') {
|
||||
$guess = $methods['email'];
|
||||
} elseif ($field['type'] == 'string') {
|
||||
$guess = $methods['alphaNumeric'];
|
||||
$guess = $methods['alphanumeric'];
|
||||
} elseif ($field['type'] == 'integer') {
|
||||
$guess = $methods['numeric'];
|
||||
} elseif ($field['type'] == 'boolean') {
|
||||
|
|
Loading…
Reference in a new issue