updating model task, may be related to #4363

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6599 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-03-25 21:39:34 +00:00
parent 92c466c0dc
commit 246095a97d

View file

@ -281,7 +281,7 @@ class ModelTask extends Shell {
} else {
$choice = $guess;
}
if ($choice !== $skip) {
if ($choice != $skip) {
if (is_numeric($choice) && isset($choices[$choice])) {
$validate[$fieldName] = $choices[$choice];
} else {