Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMCL-603: Update Case Type Entity Name #1019

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion civicase.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,9 @@ function civicase_civicrm_alterAngular(Manager $angular) {
* Entity types array.
*/
function _civicase_add_case_category_case_type_entity(array &$entityTypes) {
$entityTypes['CRM_Case_DAO_CaseType']['fields_callback'][] = function ($class, &$fields) {
$caseTypeEntityName = isset($entityTypes['CRM_Case_DAO_CaseType']) ? 'CRM_Case_DAO_CaseType' : 'CaseType';

$entityTypes[$caseTypeEntityName]['fields_callback'][] = function ($class, &$fields) {
$fields['case_type_category'] = [
'name' => 'case_type_category',
'type' => CRM_Utils_Type::T_INT,
Expand Down
Loading