Commit 4eb7f8b4 authored by webchick's avatar webchick

#725148 by greggles: Fixed Fatal error when saving forum administration form.

parent c761fb01
...@@ -259,7 +259,6 @@ function forum_overview($form, &$form_state) { ...@@ -259,7 +259,6 @@ function forum_overview($form, &$form_state) {
// The form needs to have submit and validate handlers set explicitly. // The form needs to have submit and validate handlers set explicitly.
$form['#theme'] = 'taxonomy_overview_terms'; $form['#theme'] = 'taxonomy_overview_terms';
$form['#submit'] = array('taxonomy_overview_terms_submit'); // Use the existing taxonomy overview submit handler. $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'))); $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; return $form;
} }
......
...@@ -129,6 +129,9 @@ class ForumTestCase extends DrupalWebTestCase { ...@@ -129,6 +129,9 @@ class ForumTestCase extends DrupalWebTestCase {
$this->forum = $this->createForum('forum', $this->container['tid']); $this->forum = $this->createForum('forum', $this->container['tid']);
// Create second forum in container. // Create second forum in container.
$this->delete_forum = $this->createForum('forum', $this->container['tid']); $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. // Delete this second form.
$this->deleteForum($this->delete_forum['tid']); $this->deleteForum($this->delete_forum['tid']);
// Create forum at the top (root) level. // Create forum at the top (root) level.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment