Skip to main content
added 984 characters in body
Source Link

We have 'Allow Multiple Case Clients' enabled on our CiviCRM instance. Before we upgraded to the current version, we were able to add different contact types (individual and organization) to the same CiviCase. But now we cannot. I verified that this is also not possible on the Sandbox version 5.44.alpha1.

I thought the problem might be with the relationships so as an experiment I set all relationship contact types to 'all contacts' instead of 'individual' or 'organization.' But that didn't resolve the issue.

The Case Add Client miniform restricts the search for adding additional new clients based on the client contact type that already exists on the case. See the attached images.

Add new client - one is an example of adding a new client to a case to which an organization is already attached; the other is one where an individual is already attached. The selection only allows for the same contact type to be added.

Is this a purposeful change to disallow mixed client contact types (ind/org) on the same record or is there something else that I need to do to get this to work?

Your help is appreciated.

UPDATED (based on the fact that this is custom functionality):

I'd like to alter this behavior by setting the contact type API parameter to "IN":["Individual","Organization"] rather than using the variable $contactType.

I thought I might be able to use hook_civicrm_buildForm but the CRM_Case_Form_CaseView form includes elements that are hidden and thus do not show up in the $form variable as _elements.

This is the element in CaseView.tpl that I would like to alter the parameter value:

Are elements of class 'hiddenElement' accessible to hook_civicrm_buildForm? Or should I be using a different approach?

Thanks for your help.

We have 'Allow Multiple Case Clients' enabled on our CiviCRM instance. Before we upgraded to the current version, we were able to add different contact types (individual and organization) to the same CiviCase. But now we cannot. I verified that this is also not possible on the Sandbox version 5.44.alpha1.

I thought the problem might be with the relationships so as an experiment I set all relationship contact types to 'all contacts' instead of 'individual' or 'organization.' But that didn't resolve the issue.

The Case Add Client miniform restricts the search for adding additional new clients based on the client contact type that already exists on the case. See the attached images.

Add new client - one is an example of adding a new client to a case to which an organization is already attached; the other is one where an individual is already attached. The selection only allows for the same contact type to be added.

Is this a purposeful change to disallow mixed client contact types (ind/org) on the same record or is there something else that I need to do to get this to work?

Your help is appreciated.

We have 'Allow Multiple Case Clients' enabled on our CiviCRM instance. Before we upgraded to the current version, we were able to add different contact types (individual and organization) to the same CiviCase. But now we cannot. I verified that this is also not possible on the Sandbox version 5.44.alpha1.

I thought the problem might be with the relationships so as an experiment I set all relationship contact types to 'all contacts' instead of 'individual' or 'organization.' But that didn't resolve the issue.

The Case Add Client miniform restricts the search for adding additional new clients based on the client contact type that already exists on the case. See the attached images.

Add new client - one is an example of adding a new client to a case to which an organization is already attached; the other is one where an individual is already attached. The selection only allows for the same contact type to be added.

Is this a purposeful change to disallow mixed client contact types (ind/org) on the same record or is there something else that I need to do to get this to work?

Your help is appreciated.

UPDATED (based on the fact that this is custom functionality):

I'd like to alter this behavior by setting the contact type API parameter to "IN":["Individual","Organization"] rather than using the variable $contactType.

I thought I might be able to use hook_civicrm_buildForm but the CRM_Case_Form_CaseView form includes elements that are hidden and thus do not show up in the $form variable as _elements.

This is the element in CaseView.tpl that I would like to alter the parameter value:

Are elements of class 'hiddenElement' accessible to hook_civicrm_buildForm? Or should I be using a different approach?

Thanks for your help.

Source Link

How does one add different client contact types (categories) to the same case?

We have 'Allow Multiple Case Clients' enabled on our CiviCRM instance. Before we upgraded to the current version, we were able to add different contact types (individual and organization) to the same CiviCase. But now we cannot. I verified that this is also not possible on the Sandbox version 5.44.alpha1.

I thought the problem might be with the relationships so as an experiment I set all relationship contact types to 'all contacts' instead of 'individual' or 'organization.' But that didn't resolve the issue.

The Case Add Client miniform restricts the search for adding additional new clients based on the client contact type that already exists on the case. See the attached images.

Add new client - one is an example of adding a new client to a case to which an organization is already attached; the other is one where an individual is already attached. The selection only allows for the same contact type to be added.

Is this a purposeful change to disallow mixed client contact types (ind/org) on the same record or is there something else that I need to do to get this to work?

Your help is appreciated.