Skip to content
Snippets Groups Projects
Commit 199da318 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

post event TopicDidCopy when copying topis from inside a course, fixes #628

Closes #628

Merge request studip/studip!307
parent bdd7f99a
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,8 @@ class Course_TopicsController extends AuthenticatedController ...@@ -152,6 +152,8 @@ class Course_TopicsController extends AuthenticatedController
$topic->setId($topic->getNewId()); $topic->setId($topic->getNewId());
$topic->setNew(true); $topic->setNew(true);
$topic->store(); $topic->store();
NotificationCenter::postNotification('TopicDidCopy', $topic_id, $topic->id);
} }
PageLayout::postMessage(MessageBox::success(sprintf(_("%s Themen kopiert."), count(Request::getArray("topic"))))); PageLayout::postMessage(MessageBox::success(sprintf(_("%s Themen kopiert."), count(Request::getArray("topic")))));
$this->redirect("course/topics"); $this->redirect("course/topics");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment