Skip to content

Commit

Permalink
Merge branch 'hotfix-3.5.5' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWatson committed Jul 26, 2023
2 parents 15a4f01 + 130956d commit 4e90fc7
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.5

* [#73](https://github.com/pixl8/preside-ext-data-api/issues/73) Exit early from field rendering to avoid needless handler invocation

## v3.5.4

* [#71](https://github.com/pixl8/preside-ext-data-api/issues/71) Remove unecessary helper methods
Expand Down
4 changes: 4 additions & 0 deletions services/DataApiService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ component {
return $isFeatureEnabled( "dataApiUseNullForStrings" ) ? NullValue() : "";
}

if ( !Len( arguments.value ?: "" ) ) {
return $isFeatureEnabled( "dataApiUseNullForStrings" ) ? NullValue() : "";
}

if ( $getContentRendererService().rendererExists( renderer, "dataapi" ) ) {
try {
var renderedContent = $renderContent( renderer, arguments.value, "dataapi", arguments.fieldSettings );
Expand Down

0 comments on commit 4e90fc7

Please sign in to comment.