Convert the guest_url ORM validation failure back to the url form

parameter and put in a message requiring a valid url.  Fixes ticket
This commit is contained in:
Bharat Mediratta
2010-09-16 14:19:28 -07:00
parent 70f15c6662
commit 3e3098956c
2 changed files with 3 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ class Comments_Controller extends Controller {
switch ($key) {
case "guest_name": $key = "name"; break;
case "guest_email": $key = "email"; break;
case "guest_url": $key = "url"; break;
}
$form->add_comment->inputs[$key]->add_error($error, 1);
}