diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2025-07-10 07:50:52 +0000 |
|---|---|---|
| committer | Rasmus Fuhse <fuhse@data-quest.de> | 2025-07-10 07:50:52 +0000 |
| commit | 1363010a8c23409a207a6ecaaef05ab3b75c865f (patch) | |
| tree | 3761f13db8dc5aa460c1c6db827d0665da533aa1 /lib/classes/forms/SelectInput.php | |
| parent | dd7c9b5ff58343e35a2efca859e7aaacf4a350f7 (diff) | |
Resolve "Wiki: Vorbelegung "keine" bei "Übergeordnete Seite" funktioniert nicht"
Closes #5277
Merge request studip/studip!4336
(cherry picked from commit 73a016f48fa1882b5513f35ac729f7b22dc957ae)
9d8461fb re #5277 : cast to string so that select inputs show the '' option.
bc06e2d8 remove image
Co-authored-by: Rasmus Fuhse <fuhse@data-quest.de>
Diffstat (limited to 'lib/classes/forms/SelectInput.php')
| -rw-r--r-- | lib/classes/forms/SelectInput.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/classes/forms/SelectInput.php b/lib/classes/forms/SelectInput.php index 0ba83c9..36850a9 100644 --- a/lib/classes/forms/SelectInput.php +++ b/lib/classes/forms/SelectInput.php @@ -11,7 +11,7 @@ class SelectInput extends Input $template = $GLOBALS['template_factory']->open('forms/select_input'); $template->title = $this->title; $template->name = $this->name; - $template->value = $this->value; + $template->value = (string) $this->value; $template->id = md5(uniqid()); $template->required = $this->required; $template->attributes = arrayToHtmlAttributes($this->attributes); |
