Details
Description
Specific data in CiviEvent and in a specific function, the Upcoming Events block is not working correctly. The attachment displays the output in the specific situation.
To reproduce the issue, CiviEvent must have no events with the "Public Event?" checkbox checked. Then, if a registrant visits the conference registration page, the Upcoming Events block produces bad output.
It seems the $event array created when visiting the register page is used in the /templates/CRM/Block/Event.tpl file. Since it is not numerically indexed, the foreach loop goes through the 35 values of the associative array.
If the user is on another CiviCRM page - that is not for the registration of a specific event - then the Upcoming Events block is correctly blank. If any event is set to "Public Event" the Upcoming Events block displays correctly.