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

CiviCRM returns all events when asking for events based on their title.

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.2.0
    • Component/s: CiviCRM API
    • Labels:

      Description

      Call civicrm_api('event', 'get', array(version => '3', 'title' => 'You Event Title'));
      and you get all events back. The title parameter is not taken into account.

      This is a bug in CRM/Event/DAO/Event.php on line 479. I don't have SVN checkin rights so I'll just say it here.

      it says:

      'event_title' => array(

      and should be:

      'title' => array(

      I've added some tests to EventTest.php and set up the tests with more than one event to better represent a collection of events to test against.

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              jeroen Jeroen Bensch
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: