Skip to content

Commit

Permalink
Merge branch 'hotfix-3.5.3' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
sebduggan committed Apr 6, 2023
2 parents 08fe45f + 86c688f commit 32962b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 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.5.3

* [#70](https://github.com/pixl8/preside-ext-data-api/issues/70) API call returns all fields when only invalid fields provided in fields parameter

## v3.5.2

* [#68](https://github.com/pixl8/preside-ext-data-api/issues/68) Fix for issue where background errors recorded when deleting records without an id field
Expand Down
4 changes: 4 additions & 0 deletions services/DataApiService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ component {
return dao.selectData( argumentCollection=args );
}

if ( !ArrayLen( args.selectFields ) ) {
throw( "Invaid select field" );
}

var records = dao.selectData( argumentCollection=args );
var processed = [];

Expand Down

0 comments on commit 32962b6

Please sign in to comment.