Skip to content

Commit

Permalink
Merge branch 'hotfix-3.1.3' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWatson committed Apr 22, 2021
2 parents 3c66aa7 + dfe098b commit c5bd3ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v3.1.3

* Add property’s name to data returned by field settings

## v3.1.2

* Pass through all args when using recordCountOnly=true to ensure saved/extra filters are included
Expand Down
7 changes: 4 additions & 3 deletions services/DataApiConfigurationService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ component {
return entities[ args.entity ].upsertFields ?: [];
} );
}

public array function getRelevantQueueFields( required string entity, string namespace=_getDataApiNamespace() ) {
var args = arguments;
var cacheKey = "getRelevantQueueFields" & args.namespace & args.entity;

return _simpleLocalCache( cacheKey, function(){
var objectName = getEntityObject( args.entity, args.namespace );
var fields = $getPresideObjectService().getObjectAttribute( objectName, "dataApiQueueRelevantFields#_getNamespaceWithSeparator( args.namespace )#" );

return listToArray( fields );
} );
}
Expand All @@ -170,6 +170,7 @@ component {
, type = props[ field ][ "dataApiType#namespace#" ] ?: ""
, format = props[ field ][ "dataApiFormat#namespace#" ] ?: ""
, derivative = props[ field ][ "dataApiDerivative#namespace#" ] ?: ""
, name = field
};
}

Expand Down

0 comments on commit c5bd3ae

Please sign in to comment.