When registrations are enabled, if capacity field is left blank, no registrations are possible and the 'Unfortunately, this event is at capacity and there are no spaces available.' message is shown.
Suggest that no value equals unlimited capacity or that the field is mandatory.
I think unlimited capacity makes most sense.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | recurring_events-unlimited_capacity-3090302-11.patch | 2.5 KB | owenbush |
| #11 | interdiff-3090302-9-11.txt | 1000 bytes | owenbush |
| #9 | recurring_events_3090302_9.patch | 1.53 KB | owenbush |
| #9 | interdiff-8-9.txt | 1.61 KB | owenbush |
Comments
Comment #2
owenbush commentedGood find, thanks Paul.
I'll get this looked at.
Comment #3
mrpauldriver commentedHelp text to be worded accordingly.
Comment #4
mrpauldriver commentedRevisiting this today.
When completing the event form it is easy to miss 'Total Number of Spaces Available' field. If the field is not populated then registrations are not possible, because the event is at capacity. This is a bug.
Please make this field mandatory.
The field also need needs a something for unlimited capacity (-1 perhaps).
Comment #5
owenbush commentedThis one is on the roadmap to a 1.0 stable release as part of a bigger "form validation" piece, which is kind of lacking at this time.
Comment #6
owenbush commentedComment #7
owenbush commentedComment #8
Snehal Brahmbhatt commented@MrPaulDriver @owenbush Please find this patch to resolve the above-mentioned issue.
Hope this works for you flawlessly!
Thanks,
Snehal Brahmbhatt
https://www.drupal.org/user/3147795/track
Comment #9
owenbush commentedThanks for the patch. There were a couple of issues:
1 - After you returned -1 for the capacity, you then also set the $capacity = 0; This won't run after the return so I removed that assignment.
2 - I moved the comment about that -1 capacity to above the line to make it more consistent with coding standards.
3 - When displaying the capacity the word 'Unlimited' should be translated, so I wrapped it in $this->t(), and also cleaned up the array a little because the line was over 80 characters.
Supplied are an interdiff and a new patch.
Comment #10
mrpauldriver commentedThis is working nicely.
Suggest that help text on the edit form should be updated.
From:
Maximum number of attendees available for each series, or individual event
To:
Maximum number of attendees available for each series, or individual event. Leave blank for unlimited.
Comment #11
owenbush commentedGood idea, Paul. Thanks. I've added an interdiff and a new patch.
Comment #12
mrpauldriver commentedLooks good.
Comment #14
owenbush commentedSuper duper, thanks for all the help. This has been merged and marked as fixed.
Comment #15
owenbush commented