Skip to content

Commit

Permalink
[#143] Remove reference to core variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jensschuppe committed Sep 16, 2024
1 parent 75d5aa8 commit 04a8366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/Api4/Service/Spec/Provider/EckEntitySpecProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private static function arrayToField(array $data, string $entityName): FieldSpec
// These suffixes are always supported if a field has options
$suffixes = ['name', 'label'];
// Add other columns specified in schema (e.g. 'abbrColumn')
foreach (array_diff(FormattingUtil::$pseudoConstantSuffixes, $suffixes) as $suffix) {
foreach (['abbr', 'color', 'description', 'icon', 'grouping', 'url'] as $suffix) {
if (!empty($data['pseudoconstant'][$suffix . 'Column'])) {
$suffixes[] = $suffix;
}
Expand Down

0 comments on commit 04a8366

Please sign in to comment.