Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7
-
Fix Version/s: 4.7.9
-
Component/s: CiviCRM API
-
Labels:
-
Documentation Required?:None
-
Funding Source:Core Team Funds
Description
If I send this to the API:
$result = civicrm_api3('Contact', 'get', array( 'sequential' => 1, 'email' => array('IS NOT NULL' => 1), ));
I would expect getting the contacts without a primary e-mail address, but I just get all contacts. I tried this as well:
$result = civicrm_api3('Contact', 'get', array( 'sequential' => 1, 'email' => array('<>' => ""), ));
and even
$result = civicrm_api3('Contact', 'get', array(
'sequential' => 1,
'email_id' => array('>' => "0"),
));
The result is the same.