Fix Stream-Selection in Feedback-Form

This commit is contained in:
MaZderMind 2015-03-31 08:40:50 +02:00
parent 97d076912a
commit 5c80bf0c03

View file

@ -53,15 +53,13 @@
<select class="form-control" name="stream" id="stream">
<option></option>
<? foreach(Room::rooms() as $roomiter): ?>
<? if(!$room->hasFeedback()) continue ?>
<? if(!$roomiter->hasFeedback()) continue ?>
<? foreach($roomiter->getSelections() as $selection): ?>
<option
<? if(
$room && $stream &&
$roomiter->getSlug() == $room->getSlug() &&
(
!isset($stream) ||
($selection->getSelection() == $stream->getSelection())
)
$selection->getSelection() == $stream->getSelection()
): ?>selected<? endif ?>
value="<?=h($roomiter->getSlug().'-'.$selection->getSelection())?>"
>