* @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');
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);
}