From 8ba5985a08dc445ccb12b1d8af19cf2271e2679e Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 18 Nov 2023 16:51:11 +0000 Subject: [PATCH] [REF][PHP8.2] Remove need for _allowMultiClient property --- CRM/Case/Form/Activity/OpenCase.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CRM/Case/Form/Activity/OpenCase.php b/CRM/Case/Form/Activity/OpenCase.php index 1c3092f0bc..6f01cce1b4 100644 --- a/CRM/Case/Form/Activity/OpenCase.php +++ b/CRM/Case/Form/Activity/OpenCase.php @@ -32,10 +32,6 @@ class CRM_Case_Form_Activity_OpenCase { * @throws \CRM_Core_Exception */ public static function preProcess(&$form) { - //get multi client case configuration - $xmlProcessorProcess = new CRM_Case_XMLProcessor_Process(); - $form->_allowMultiClient = (bool) $xmlProcessorProcess->getAllowMultipleCaseClients(); - if ($form->_context == 'caseActivity') { $contactID = CRM_Utils_Request::retrieve('cid', 'Positive', $form); $atype = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', 'activity_type_id', 'Change Case Start Date'); @@ -140,9 +136,12 @@ class CRM_Case_Form_Activity_OpenCase { return; } if ($form->_context == 'standalone') { + //get multi client case configuration + $xmlProcessorProcess = new CRM_Case_XMLProcessor_Process(); + $form->addEntityRef('client_id', ts('Client'), [ 'create' => TRUE, - 'multiple' => $form->_allowMultiClient, + 'multiple' => (bool) $xmlProcessorProcess->getAllowMultipleCaseClients(), ], TRUE); } -- 2.25.1