Skip to content
Snippets Groups Projects
Commit a765d024 authored by Dave Greenberg's avatar Dave Greenberg
Browse files

Merge pull request #2236 from eileenmcnaughton/CRM-14008

CRM-14008 alter update greeting to update blanks as well as null
parents e9892356 a39ef8af
Branches
Tags
No related merge requests found
......@@ -989,8 +989,12 @@ Group By componentId";
$sql = "SELECT DISTINCT id, $idFldName FROM civicrm_contact WHERE contact_type = %1 ";
}
else {
$sql = "SELECT DISTINCT id, $idFldName FROM civicrm_contact WHERE contact_type = %1
AND ( {$idFldName} IS NULL OR ( {$idFldName} IS NOT NULL AND {$displayFldName} IS NULL ) ) ";
$sql = "
SELECT DISTINCT id, $idFldName
FROM civicrm_contact
WHERE contact_type = %1
AND ({$idFldName} IS NULL
OR ( {$idFldName} IS NOT NULL AND ({$displayFldName} IS NULL OR {$displayFldName} = '')) )";
}
$dao = CRM_Core_DAO::executeQuery($sql, array(1 => array($contactType, 'String')));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment