diff --git a/cake/console/libs/tasks/model.php b/cake/console/libs/tasks/model.php index 57eb5ef68..b5976acd7 100644 --- a/cake/console/libs/tasks/model.php +++ b/cake/console/libs/tasks/model.php @@ -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; } } }