Fix delete forum

pull/4004/head
Julio 3 years ago
parent 3377e72523
commit 06eb0aabb9
  1. 4
      public/main/forum/viewforum.php
  2. 1
      tests/behat/features/toolForum.feature

@ -76,6 +76,10 @@ $repo = Container::getForumRepository();
/** @var CForum $forumEntity */
$forumEntity = $repo->find($forumId);
if (null === $forumEntity) {
api_not_allowed(true);
}
$courseEntity = api_get_course_entity(api_get_course_int_id());
$sessionEntity = api_get_session_entity(api_get_session_id());
$isForumOpenByDateAccess = api_is_date_in_date_range($forumEntity->getStartTime(), $forumEntity->getEndTime());

@ -51,7 +51,6 @@ Feature: Forum tool
And I follow "Forum Test"
Then I follow "Thread One"
Then I follow "Delete"
And I confirm the popup
And wait for the page to be loaded
Then I should see "Thread deleted"

Loading…
Cancel
Save