mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
12ae20d228
commit
199a098cf1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue