summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngie Byron2010-03-10 17:59:00 (GMT)
committerAngie Byron2010-03-10 17:59:00 (GMT)
commit4eb7f8b46046e5ee0a3ba559f661f2a3a8ddda65 (patch)
treedb9d955e9e252a60f159e09cd4d1dbda1c356bdc
parentc761fb01f4d65574e9644fc8815b5dbd2a4c5c5c (diff)
#725148 by greggles: Fixed Fatal error when saving forum administration form.
-rw-r--r--modules/forum/forum.admin.inc1
-rw-r--r--modules/forum/forum.test3
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/forum/forum.admin.inc b/modules/forum/forum.admin.inc
index 4014787..c81e612 100644
--- a/modules/forum/forum.admin.inc
+++ b/modules/forum/forum.admin.inc
@@ -259,7 +259,6 @@ function forum_overview($form, &$form_state) {
// The form needs to have submit and validate handlers set explicitly.
$form['#theme'] = 'taxonomy_overview_terms';
$form['#submit'] = array('taxonomy_overview_terms_submit'); // Use the existing taxonomy overview submit handler.
- $form['#validate'] = array('taxonomy_overview_terms_validate');
$form['#empty_text'] = t('No containers or forums available. <a href="@container">Add container</a> or <a href="@forum">Add forum</a>.', array('@container' => url('admin/structure/forum/add/container'), '@forum' => url('admin/structure/forum/add/forum')));
return $form;
}
diff --git a/modules/forum/forum.test b/modules/forum/forum.test
index 64fcc7a..7703bb0 100644
--- a/modules/forum/forum.test
+++ b/modules/forum/forum.test
@@ -129,6 +129,9 @@ class ForumTestCase extends DrupalWebTestCase {
$this->forum = $this->createForum('forum', $this->container['tid']);
// Create second forum in container.
$this->delete_forum = $this->createForum('forum', $this->container['tid']);
+ // Save forum overview.
+ $this->drupalPost('admin/structure/forum/', array(), t('Save'));
+ $this->assertRaw(t('Your configuration has been saved.'));
// Delete this second form.
$this->deleteForum($this->delete_forum['tid']);
// Create forum at the top (root) level.