From 1cc7b3f4be8d13a24218be1b05454f43cfc0d444 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 18 Jan 2009 23:27:26 +0000 Subject: Don't force validation anymore; we're clearing the form properly in the controller on successful add. --- modules/comment/helpers/comment.php | 7 ------- 1 file changed, 7 deletions(-) (limited to 'modules/comment/helpers') diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index 6e204ace..3fbf05e1 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -79,13 +79,6 @@ class comment_Core { $group->hidden("item_id")->value($item->id); $group->submit("")->value(t("Add")); - // Forge will try to reload any pre-seeded values upon validation if it's a post request, so - // force validation before seeding values. - // @todo make that an option in Forge - if (request::method() == "post") { - $form->validate(); - } - $active = user::active(); if (!$active->guest) { $group->inputs["name"]->value($active->full_name)->disabled("disabled"); -- cgit v1.2.3