Skip to content
Snippets Groups Projects
Commit 3a8b0e14 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #3648

Closes #3648

Merge request studip/studip!2523
parent f39148d2
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
<?= MessageBox::info(_('Es wurde kein Raum ausgewählt!')) ?> <?= MessageBox::info(_('Es wurde kein Raum ausgewählt!')) ?>
<? endif ?> <? endif ?>
<? if ($requests && $resource): ?> <? if (isset($requests, $resource)): ?>
<form class="default" method="post" <form class="default" method="post"
action="<?= $controller->link_for('room_request/assign') ?>"> action="<?= $controller->link_for('room_request/assign') ?>">
<table id="external-events" class="default request-list"> <table id="external-events" class="default request-list">
......
...@@ -11,9 +11,9 @@ class RangeInput extends Input ...@@ -11,9 +11,9 @@ class RangeInput extends Input
$template->name = $this->name; $template->name = $this->name;
$template->value = $this->value; $template->value = $this->value;
$template->id = md5(uniqid()); $template->id = md5(uniqid());
$template->min = $this->attributes['min']; $template->min = $this->attributes['min'] ?? null;
$template->max = $this->attributes['max']; $template->max = $this->attributes['max'] ?? null;
$template->step = $this->attributes['step']; $template->step = $this->attributes['step'] ?? null;
$template->required = $this->required; $template->required = $this->required;
$template->attributes = arrayToHtmlAttributes($this->attributes); $template->attributes = arrayToHtmlAttributes($this->attributes);
return $template->render(); return $template->render();
......
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