From 199a098cf1a3429d62c625cd3ee198fa393f4cd4 Mon Sep 17 00:00:00 2001 From: gwoo Date: Sun, 9 Mar 2008 04:32:03 +0000 Subject: [PATCH] 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 --- cake/console/libs/tasks/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } }