mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix showing a schedule without venue/rooms
This commit is contained in:
parent
813658fb19
commit
8e324ac1af
1 changed files with 5 additions and 1 deletions
|
|
@ -16,7 +16,11 @@ module Admin
|
|||
return
|
||||
end
|
||||
@dates = @conference.start_date..@conference.end_date
|
||||
@rooms = @venue.rooms
|
||||
if @venue && @venue.rooms.any?
|
||||
@rooms = @venue.rooms
|
||||
else
|
||||
@rooms = [ Room.new(name: 'No Rooms!', size: 0) ]
|
||||
end
|
||||
end
|
||||
|
||||
def update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue