#725148 by greggles: Fixed Fatal error when saving forum administration form.
parent
c761fb01f4
commit
4eb7f8b460
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue