Skip to content
Snippets Groups Projects
Commit 71c1e5cb 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 56f1bfe1
No related branches found
No related tags found
No related merge requests found
...@@ -818,7 +818,7 @@ class CalendarDate extends SimpleORMap implements PrivacyObject ...@@ -818,7 +818,7 @@ class CalendarDate extends SimpleORMap implements PrivacyObject
$repetition_dow_week = '1'; $repetition_dow_week = '1';
} else { } 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)); $repetition_end_date = htmlReady(date('d.m.Y', $this->repetition_end));
} else { } else {
//Provide a good default value in case the user wants to enable or change the repetition: //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.
Please register or to comment