From cc0ecb04be270a950424f4ab3c6100979bc19f9c Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Wed, 4 May 2016 10:18:59 -0500 Subject: [PATCH] Fix form to create forum thread + fix its behat test --- main/forum/forumfunction.inc.php | 1 + tests/features/forum.feature | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main/forum/forumfunction.inc.php b/main/forum/forumfunction.inc.php index a9cc53f482..0843699f39 100755 --- a/main/forum/forumfunction.inc.php +++ b/main/forum/forumfunction.inc.php @@ -2801,6 +2801,7 @@ function show_add_post_form($current_forum, $forum_setting, $action = '', $id = 'post_text', get_lang('Text'), true, + false, api_is_allowed_to_edit(null, true) ? array( 'ToolbarSet' => 'Forum', 'Width' => '100%', diff --git a/tests/features/forum.feature b/tests/features/forum.feature index 13a8fcfbe6..3172fc1b73 100644 --- a/tests/features/forum.feature +++ b/tests/features/forum.feature @@ -23,7 +23,7 @@ Feature: Forum tool Then I should see "The forum has been added" Scenario: Create a forum thread - Given I am on "/main/forum/newthread.php?forum=5" + Given I am on "/main/forum/newthread.php?forum=1" When I fill in the following: | post_title | Thread One | | post_text | This is a the first thread in a forum for test |