Device Edit Foregin Key Error

This commit is contained in:
JonatanRek 2019-09-09 21:30:03 +02:00
parent 6248b7addb
commit 52f526eaf1

View File

@ -77,7 +77,7 @@
$roomId = $room['room_id'];
$roomName = $room['name'];
?>
<option value="<?php echo $roomName; ?>" <?php ECHO ((int) $roomId === (int) $DEVICE['room'] ? 'selected="selected"' : ''); ?>><?php echo $roomName; ?></option>
<option value="<?php echo $roomId; ?>" <?php ECHO ((int) $roomId === (int) $DEVICE['room'] ? 'selected="selected"' : ''); ?>><?php echo $roomName; ?></option>
<?php } ?>
</select>
</div>