mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix event registatrion for rooms without size
If the room size is not set (which is possible as the size is not mandatory), the events registrations page breaks because of a comparison of nil with Integer.
This commit is contained in:
parent
617f1e9eb0
commit
51c8af42ab
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@
|
|||
for
|
||||
= @event.title
|
||||
|
||||
- if @event.room && (@event_registrations.length > @event.room.size)
|
||||
- if @event.room.try(:size) && (@event_registrations.length > @event.room.size)
|
||||
%b Attention:
|
||||
You have more registrations than the capacity of the room!
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue