aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/wizard.php
diff options
context:
space:
mode:
authorRasmus Fuhse <fuhse@data-quest.de>2025-01-10 12:13:24 +0000
committerRasmus Fuhse <fuhse@data-quest.de>2025-01-10 12:13:24 +0000
commit39745c9aa8bb099e8bda1f4d775ed229dbe97be4 (patch)
treea2a96deecf48e62d995507c5c8b39eea9ae9293d /app/controllers/course/wizard.php
parent03e8e1d8f9100cf9bfcb111b63ac4077f510a026 (diff)
Resolve "Studiengruppen erweitern" - Hauptbronch
Closes #3616 Merge request studip/studip!2509
Diffstat (limited to 'app/controllers/course/wizard.php')
-rw-r--r--app/controllers/course/wizard.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/app/controllers/course/wizard.php b/app/controllers/course/wizard.php
index b4244b6..ad289ed 100644
--- a/app/controllers/course/wizard.php
+++ b/app/controllers/course/wizard.php
@@ -64,7 +64,7 @@ class Course_WizardController extends AuthenticatedController
*/
public function index_action()
{
- $this->redirect('course/wizard/step/0' . ($this->studygroup ? '?studygroup=1' : ''));
+ $this->redirect('course/wizard/step/0' . ($this->studygroup ? '?studygroup=1&stgteil_id='.Request::option('stgteil_id') : ''));
}
/**
@@ -93,7 +93,10 @@ class Course_WizardController extends AuthenticatedController
// Add special studygroup flag to set values.
$this->setStepValues(
get_class($step),
- array_merge($this->getValues(get_class($step)), ['studygroup' => 1])
+ array_merge($this->getValues(get_class($step)), [
+ 'studygroup' => 1,
+ 'stgteil_id' => Request::option('stgteil_id')
+ ])
);
}
$this->values = $this->getValues();
@@ -193,11 +196,13 @@ 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. '
+ _('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]);
// "Normal" course.