[#61] fix bug on settings page

The array passed to $this->addEntityRef() was incorrectly structured
This commit is contained in:
Marc Michalsky 2023-02-14 09:27:04 +01:00
parent c88be90532
commit c62af9582e
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -90,12 +90,16 @@ class CRM_Twingle_Form_Settings extends CRM_Core_Form {
);
$this->addEntityRef(
'twingle_protect_recurring_activity_assignee',
E::ts('Assigned To'),
[
'contact_type' => ['IN' => ['Individual', 'Organization']],
'twingle_protect_recurring_activity_assignee',
E::ts('Assigned To'),
[
'api' => [
'params' => [
'contact_type' => ['IN' => ['Individual', 'Organization']],
'check_permissions' => 0,
]
],
],
]
);
$this->addButtons(array(