Skip to content

Commit

Permalink
Merge pull request #19223 from civicrm/5.33
Browse files Browse the repository at this point in the history
5.33
  • Loading branch information
seamuslee001 authored Dec 15, 2020
2 parents b696226 + ab66bc1 commit 69be620
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Core/Reference/Dynamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public function matchesTargetTable($tableName) {
public function getTargetEntities(): array {
$targetEntities = [];
$bao = CRM_Core_DAO_AllCoreTables::getClassForTable($this->refTable);
foreach ($bao::buildOptions($this->refTypeColumn) as $table => $label) {
$targetTables = (array) $bao::buildOptions($this->refTypeColumn);
foreach ($targetTables as $table => $label) {
$targetEntities[$table] = CRM_Core_DAO_AllCoreTables::getEntityNameForTable($table);
}
return $targetEntities;
Expand Down

0 comments on commit 69be620

Please sign in to comment.