Skip to content

Commit

Permalink
tweak(Addressbook/Contact): check if GDPR is installed
Browse files Browse the repository at this point in the history
... when expanding gdpr props
  • Loading branch information
pschuele committed Jan 17, 2024
1 parent 7431c85 commit 377f7ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tine20/Addressbook/Controller/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,9 @@ public function getContactsRecipientToken(array $contacts): array
$mailTypes = ['email', 'email_home'];
$possibleAddresses = [];

if (class_exists('GDPR_Controller_DataIntendedPurposeRecord')) {
if (class_exists('GDPR_Controller_DataIntendedPurposeRecord')
&& Tinebase_Application::getInstance()->isInstalled('GDPR')
) {
$expander = new Tinebase_Record_Expander(Addressbook_Model_Contact::class, [
Tinebase_Record_Expander::EXPANDER_PROPERTIES => [
GDPR_Controller_DataIntendedPurposeRecord::ADB_CONTACT_CUSTOM_FIELD_NAME => [
Expand Down

0 comments on commit 377f7ee

Please sign in to comment.