Skip to content

Commit

Permalink
Allow having a different civicrm_entity entity id and table. (eileenm…
Browse files Browse the repository at this point in the history
…cnaughton#501)

Co-authored-by: Arnold French <[email protected]>
  • Loading branch information
puresyntax71 and Arnold French committed Jan 9, 2025
1 parent a29e6bf commit e2b41bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion civicrm_entity.module
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function civicrm_entity_entity_type_build(array &$entity_types) {
'id' => 'id',
'label' => $civicrm_entity_info['label property'],
],
'base_table' => $entity_type_id,
'base_table' => $civicrm_entity_info['base table'] ?? $entity_type_id,
'admin_permission' => 'administer civicrm entity',
'permission_granularity' => 'entity_type',
'handlers' => [
Expand Down

0 comments on commit e2b41bc

Please sign in to comment.