Skip to content

Commit

Permalink
Allow having a different civicrm_entity entity id and table. (#501)
Browse files Browse the repository at this point in the history
Co-authored-by: Arnold French <[email protected]>
  • Loading branch information
puresyntax71 and Arnold French authored Dec 5, 2024
1 parent 216e3a3 commit 1f3887b
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 1f3887b

Please sign in to comment.