mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
01db539c39
commit
2ecfeb182d
1 changed files with 1 additions and 4 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue