Skip to content
Snippets Groups Projects
Commit 68eb042c authored by Moritz Strohm's avatar Moritz Strohm
Browse files

allow all-day events that span over multiple days, fixes #3872

Closes #3872

Merge request studip/studip!2727
parent 9315424f
No related branches found
No related tags found
No related merge requests found
......@@ -386,7 +386,6 @@ class Calendar_DateController extends AuthenticatedController
if (Request::get('all_day') === '1') {
$this->all_day_event = true;
$begin->setTime(0,0,0);
$end = clone $begin;
$end->setTime(23,59,59);
}
$this->date->begin = $begin->getTimestamp();
......
......@@ -64,8 +64,7 @@
</label>
</div>
<label>
<input type="checkbox" name="all_day" value="1" <?= $all_day_event ? 'checked' : '' ?>
data-deactivates=".new-calendar-date-form input[name='end']">
<input type="checkbox" name="all_day" value="1" <?= $all_day_event ? 'checked' : '' ?>>
<?= _('Ganztägiger Termin') ?>
</label>
<label>
......
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