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.
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
.