Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4777

Upcoming events block with garbled output when no upcoming events available

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.7
    • Fix Version/s: 3.0
    • Component/s: CiviEvent
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              gnott Graham Nott
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: