From 92d15e7c7cda42ab0607ed1a6fc153c96faf753a Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Tue, 14 Feb 2023 09:27:04 +0100 Subject: [PATCH] [#61] fix bug on settings page The array passed to $this->addEntityRef() was incorrectly structured --- CRM/Twingle/Form/Settings.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/CRM/Twingle/Form/Settings.php b/CRM/Twingle/Form/Settings.php index dba6a28..631fb05 100644 --- a/CRM/Twingle/Form/Settings.php +++ b/CRM/Twingle/Form/Settings.php @@ -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(