X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FApi4%2FQuery%2FApi4SelectQuery.php;h=009095ebc91d3e150027b5c5e19a20041e98c75b;hb=5df3f1075c0834e807239bb6f0430982c210677d;hp=e4f8ceb187fcd6d37715c9b92cbb2cee4d403d77;hpb=40907409ee67ed8dc1b186995af54040f3555ef4;p=civicrm-core.git diff --git a/Civi/Api4/Query/Api4SelectQuery.php b/Civi/Api4/Query/Api4SelectQuery.php index e4f8ceb187..009095ebc9 100644 --- a/Civi/Api4/Query/Api4SelectQuery.php +++ b/Civi/Api4/Query/Api4SelectQuery.php @@ -275,7 +275,7 @@ class Api4SelectQuery { $suffix = strstr($item, ':'); if ($suffix && $expr->getType() === 'SqlField') { $field = $this->getField($item); - $options = FormattingUtil::getPseudoconstantList($field['entity'], $field['name'], substr($suffix, 1)); + $options = FormattingUtil::getPseudoconstantList($field, substr($suffix, 1)); if ($options) { asort($options); $column = "FIELD($column,'" . implode("','", array_keys($options)) . "')";