diff options
Diffstat (limited to 'app/controllers/course/wizard.php')
| -rw-r--r-- | app/controllers/course/wizard.php | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/app/controllers/course/wizard.php b/app/controllers/course/wizard.php index ad289ed..b1cfcbb 100644 --- a/app/controllers/course/wizard.php +++ b/app/controllers/course/wizard.php @@ -197,13 +197,22 @@ class Course_WizardController extends AuthenticatedController // A studygroup has been created. if (in_array($this->course->status, studygroup_sem_types())) { - $message = MessageBox::success(sprintf( - _('Die Studien-/Arbeitsgruppe „%s“ wurde angelegt. ' - . 'Sie können sie direkt hier weiter verwalten.'), - htmlReady($this->course->name) - )); + if ($this->course->isToolActive(CoreStudygroupAdmin::class)) { + $message = MessageBox::success(sprintf( + _('Die Studien-/Arbeitsgruppe „%s“ wurde angelegt. ' + . 'Sie können sie direkt hier weiter verwalten.'), + htmlReady($this->course->name) + )); + + $target = $this->url_for('course/studygroup/edit', ['cid' => $this->course->id]); + } else { + $message = MessageBox::success(sprintf( + _('Die Studien-/Arbeitsgruppe „%s“ wurde angelegt.'), + htmlReady($this->course->name) + )); - $target = $this->url_for('course/studygroup/edit', ['cid' => $this->course->id]); + $target = $this->url_for('course/go', ['to' => $this->course->id]); + } // "Normal" course. } elseif (Request::int('dialog') && $GLOBALS['perm']->have_perm('admin')) { |
