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

Fail more gracefully on event display with invalid data in the DB

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.24
    • Fix Version/s: 4.7.25
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      If the user has an event registration but the event has been deleted CiviCRM crashes with a CRM_Core_Error::fatal because the event search still tries to lookup the event details.  This patch checks the event_id is set, and skips the registration if it is not.  It is unlikely to happen unless data has been modified directly in the database.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mattwire Matthew Wire
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: