fixes #4160 regex validation in bake model

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6531 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-03-09 04:32:03 +00:00
parent 12ae20d228
commit 199a098cf1

View file

@ -267,7 +267,7 @@ class ModelTask extends Shell {
if (is_numeric($choice) && isset($options[$choice])) {
$validate[$fieldName] = $options[$choice];
} else {
$validate[$fieldName] = $validation;
$validate[$fieldName] = $choice;
}
}
}