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-20 10:19:18 +0200
commiteb9f1791ab262797e04ca6dd811d293863dc2114 (patch)
tree65e1a0536c4893f6c72ee79f4e8d0afcc06afc1a /templates
parentff7505895b6611bc014e3a4ed5ef2b054bad793c (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>