Bugfix: Show empty room

This commit is contained in:
Torsten 2022-06-14 09:34:39 +02:00
parent 3611556228
commit e80863fbaf
4 changed files with 244 additions and 15 deletions

View file

@ -206,6 +206,10 @@ class TourController extends Controller
";
$rooms=DB::select($sql);
Log::info("TourController.fetch_rooms, returning rooms result:");
Log::info($rooms);
return($rooms);
}

View file

@ -90,17 +90,17 @@
<div class="card-body">
<ul>
<!-- Intentional Asignment ! -->
@if( $room_display_name="-" ) @endif
<!-- Intentional Assignment ! -->
@if ($room_id="") @endif
@foreach($rooms as $room)
@if ($room_display_name != $room->room_name)
@if(strlen($room_display_name))
@if ($room_id != $room->room_id)
@if(strlen($room_id))
<hr/>
@endif
<ul><b>{{$room->room_name}}</b></ul>
<ul><b>[{{$room->room_id}}] {{$room->room_name}}</b></ul>
<!-- Intentional Asignment ! -->
@if ($room_display_name=$room->room_name) @endif
<!-- Intentional Assignment ! -->
@if ($room_id=$room->room_id) @endif
@endif
@if(strlen($room->user_name))

View file

@ -108,17 +108,17 @@
<div class="card-body">
<ul>
<!-- Intentional Asignment ! -->
@if ($room_display_name="") @endif
<!-- Intentional Assignment ! -->
@if ($room_id="") @endif
@foreach($rooms as $room)
@if ($room_display_name != $room->room_name)
@if(strlen($room_display_name))
@if ($room_id != $room->room_id)
@if(strlen($room_id))
<hr/>
@endif
<ul><b>{{$room->room_name}}</b></ul>
<ul><b>[{{$room->room_id}}] {{$room->room_name}}</b></ul>
<!-- Intentional Asignment ! -->
@if ($room_display_name=$room->room_name) @endif
<!-- Intentional Assignment ! -->
@if ($room_id=$room->room_id) @endif
@endif
@if(strlen($room->user_name))

File diff suppressed because one or more lines are too long