Closed (works as designed)
Project:
Entity Registration
Version:
7.x-1.x-dev
Component:
Registration Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 May 2012 at 06:13 UTC
Updated:
7 Feb 2017 at 16:37 UTC
Jump to comment: Most recent
Comments
Comment #1
MortenP commentedIn function registration_has_room line 574, the check
if (($capacity - $count) < 0) {
seems wrong to me, at least in my case $count can never be greater than $capacity.
Status returns the correct value when I change it to
if (($capacity - $count) <= 0) {
Comment #2
MortenP commentedMy workaround for the missing capacity in views was using Views PHP module:
Comment #3
levelos commentedThe status on a registration entity only governs whether a particular instance of a registration entity is active and counted against totals, used in broadcasts, etc.
Capacity and an event's overall ability to receive additional registrations is governed by a function, registration_status(). This status value is made available in the Views handler provided with registration_views, registration_handler_field_entity_registration_status. Capacity is also available in Views via the same module.
That explained, is there still an issue here?
Comment #4
levelos commentedComment #5
sportel commentedI believe the original question was how to show the capacity, or remaining slots available. It might be my bad understanding of drupal/views/ER, but I'm still not sure on how to show the capacity in Views. I can add the Slots Used field and the Registration Status field, but thats it.
But as I said, it's probebly just me, so if you could give me some hints...
Thanks,
Mike.
Comment #6
mrpauldriver commentedCreate a view displaying fields of your registration content types
Add a relationship of Registration Settings: Node to Registration Settings (filter by Registration Settings)
You should have access two fields 'Slots Total' and 'Spaces Used' which you can add to your view
Comment #7
plusproduit commentedThanks MrPaulDriver, very useful!
However I had to use a view type Content to show capacity when nobody's registered.