Merge pull request #2525 from Ana06/fix_event_registrations

Fix event registatrion for rooms without size
This commit is contained in:
Ana María Martínez Gómez 2019-06-01 11:09:42 +02:00 committed by GitHub
commit 9303375f7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!