Skip to content
Snippets Groups Projects
Commit bde0ce95 authored by Philipp Schüttlöffel's avatar Philipp Schüttlöffel Committed by David Siegfried
Browse files

CourseWizard: better error message on nodata failure, fixes #981

Closes #981

Merge request studip/studip!71
parent ef16ca3d
No related branches found
No related tags found
No related merge requests found
...@@ -244,7 +244,8 @@ class Course_WizardController extends AuthenticatedController ...@@ -244,7 +244,8 @@ class Course_WizardController extends AuthenticatedController
$this->stepnumber = $stepnumber; $this->stepnumber = $stepnumber;
$this->temp_id = $temp_id; $this->temp_id = $temp_id;
if (!$this->getValues()) { if (!$this->getValues()) {
throw new UnexpectedValueException('no data found'); PageLayout::postError(_('Ihre Session ist abgelaufen, bitte erneut anfangen.'));
$this->redirect('course/wizard');
} }
if (isset($_SESSION['coursewizard'][$this->temp_id]['source_id'])) { if (isset($_SESSION['coursewizard'][$this->temp_id]['source_id'])) {
$this->source_course = Course::find($_SESSION['coursewizard'][$this->temp_id]['source_id']); $this->source_course = Course::find($_SESSION['coursewizard'][$this->temp_id]['source_id']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment