Skip to content
Snippets Groups Projects
Commit 14782649 authored by Philipp Schüttlöffel's avatar Philipp Schüttlöffel Committed by Jan-Hendrik Willms
Browse files

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

Closes #981

Merge request studip/studip!71
parent 412dbe0d
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,8 @@ class Course_WizardController extends AuthenticatedController
$this->stepnumber = $stepnumber;
$this->temp_id = $temp_id;
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'])) {
$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