Commit bdda1101 authored by ErikHommel's avatar ErikHommel

issue 4594 - get AIVL id based on legal name

parent c4a1a73b
......@@ -186,9 +186,10 @@ class CRM_Aivlbasicsignup_BasicSignupConfig {
*/
private function setAivlContactId() {
try {
$this->_aivlContactId = (int) civicrm_api3('Domain', 'getvalue', [
'return' => "contact_id",
'options' => ['limit' => 1],
$this->_aivlContactId = (int) civicrm_api3('Contact', 'getvalue', [
'return' => "id",
'contact_type' => "Organization",
'legal_name' => "Amnesty International Vlaanderen VZW",
]);
}
catch (CiviCRM_API3_Exception $ex) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment