Skip to content
Snippets Groups Projects
Commit c0ea7ec4 authored by Moritz Strohm's avatar Moritz Strohm Committed by Jan-Hendrik Willms
Browse files

CalendarDate::getRepetitionInputHtml: set repetition end date to the end of...

CalendarDate::getRepetitionInputHtml: set repetition end date to the end of the original date for dates with neverending repetition, fixes #3810

Closes #3810

Merge request studip/studip!2706
parent 66543227
No related branches found
No related tags found
No related merge requests found
......@@ -818,7 +818,7 @@ class CalendarDate extends SimpleORMap implements PrivacyObject
$repetition_dow_week = '1';
} else {
if ($this->repetition_end) {
if ($this->repetition_end && intval($this->repetition_end) !== self::NEVER_ENDING) {
$repetition_end_date = htmlReady(date('d.m.Y', $this->repetition_end));
} else {
//Provide a good default value in case the user wants to enable or change the repetition:
......
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