aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-06-19 16:32:39 +0200
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-06-19 16:32:39 +0200
commit41e17b3ed7579104d9a9ec741fca0c576ac86cef (patch)
tree06fe8a8a568665a929b8887183daddc0841c0865 /templates
parentfafe09daf59e8a2138af7c895da62b23735ee8ab (diff)
allow date and time data fields entries to be emptied (unless they are required) and fix time datafield input, fixes #5649, fixes #5650
Closes #5649 and #5650 Merge request studip/studip!4267
Diffstat (limited to 'templates')
-rw-r--r--templates/datafields/time.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/datafields/time.php b/templates/datafields/time.php
index 0fe3c92..23e52f0 100644
--- a/templates/datafields/time.php
+++ b/templates/datafields/time.php
@@ -8,10 +8,10 @@
<? endif ?>
<div style="white-space: nowrap;">
- <input type="text" name="<?= $name ?>[<?= $model->id ?>][]"
+ <input type="text" name="<?= $name ?>[<?= $model->id ?>]"
value="<?= $value ?>" title="<?= _('Uhrzeit') ?>"
<?= !$entry->isEditable() ? "disabled" : "" ?>
- maxlength="2" class="size-s no-hint has-time-picker"
+ class="size-s no-hint has-time-picker"
<? if ($model->is_required) echo 'required'; ?>>
</div>
</label>