fixes #5228, wrong numbers in model task validation routine

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7445 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-08-08 08:53:50 +00:00
parent 01db539c39
commit 2ecfeb182d

View file

@ -251,11 +251,8 @@ class ModelTask extends Shell {
sort($options);
$skip = 1;
$choices = array($skip++ => 'notempty');
$prompt .= "{$skip} - required\n";
foreach ($options as $key => $option) {
if ($option{0} != '_' && strtolower($option) != 'getinstance' && strtolower($option) != 'notempty') {
if ($option{0} != '_' && strtolower($option) != 'getinstance') {
$prompt .= "{$skip} - {$option}\n";
$choices[$skip] = strtolower($option);
$skip++;