Merge pull request #18430 from eileenmcnaughton/open
[civicrm-core.git] / Civi / Api4 / Query / Api4SelectQuery.php
index e4f8ceb187fcd6d37715c9b92cbb2cee4d403d77..009095ebc91d3e150027b5c5e19a20041e98c75b 100644 (file)
@@ -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)) . "')";