Browse Source

Fix form to create forum thread + fix its behat test

Angel Fernando Quiroz Campos 8 years ago
parent
commit
cc0ecb04be
2 changed files with 2 additions and 1 deletions
  1. 1 0
      main/forum/forumfunction.inc.php
  2. 1 1
      tests/features/forum.feature

+ 1 - 0
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%',

+ 1 - 1
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 |