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.