add select field for XCM profile to extension config page

This commit is contained in:
Marc Michalsky forumZFD 2020-11-12 14:02:03 +01:00
parent e460d923f8
commit e4af927a5b
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
4 changed files with 72 additions and 56 deletions

View file

@ -318,7 +318,7 @@ class TwingleEvent extends Campaign {
}
try {
$contact = civicrm_api3('Contact', 'getorcreate', [
'xcm_profile' => 'default',
'xcm_profile' => Civi::settings()->get('twinglecampaign_xcm_profile'),
'first_name' => $names,
'last_name' => $lastname,
'email' => $email,