CruGlobal / conf-registration-web

Event Registration Tool
https://www.eventregistrationtool.com
MIT License
2 stars 1 forks source link

EVENT-785-First-Page-Visible-When-No-Content-Applies #776

Closed TheNoodleMoose closed 2 years ago

TheNoodleMoose commented 2 years ago

Ticket: https://jira.cru.org/browse/EVENT-785

Basically, two bugs were happening and this fix resolves them both. If the first page is empty, as in no questions, when the user started registering they would land on that first page and it would be empty. The second has a similar end result of an empty page, but was resulted because there were no questions on the first page for the specific registrantType. The ticket shows this in more detail.

So my fix was to filter out all pages that have no questions blocks. This was happening in some capacity already, but the links navigated to the first page, regardless of if it had any valid question blocks or if it was visible.

TheNoodleMoose commented 2 years ago

Yeah, that may be an improvement I visit during the rewrite.