diff --git a/handlers/renderers/content/DataApiPageLink.cfc b/handlers/renderers/content/DataApiPageLink.cfc index 667216d..4c212e1 100644 --- a/handlers/renderers/content/DataApiPageLink.cfc +++ b/handlers/renderers/content/DataApiPageLink.cfc @@ -6,5 +6,7 @@ component { if ( pageId.len() ) { return event.buildLink( page=pageId ); } + + return ""; } } \ No newline at end of file diff --git a/handlers/renderers/content/DataApiPageLinkArray.cfc b/handlers/renderers/content/DataApiPageLinkArray.cfc index 76c8d30..1bf2467 100644 --- a/handlers/renderers/content/DataApiPageLinkArray.cfc +++ b/handlers/renderers/content/DataApiPageLinkArray.cfc @@ -1,6 +1,6 @@ component { - private string function default( event, rc, prc, args={} ){ + private array function default( event, rc, prc, args={} ){ var pages = ListToArray( args.data ?: "" ); for( var i=1; i<=pages.len(); i++ ) { diff --git a/services/DataApiService.cfc b/services/DataApiService.cfc index 6d45e28..0481f88 100644 --- a/services/DataApiService.cfc +++ b/services/DataApiService.cfc @@ -325,13 +325,19 @@ component { } if ( $getContentRendererService().rendererExists( renderer, "dataapi" ) ) { - var renderedContent = $renderContent( renderer, arguments.value, "dataapi", arguments.fieldSettings ); - if ( Len( renderedContent ?: "" ) ) { - return renderedContent; + try { + var renderedContent = $renderContent( renderer, arguments.value, "dataapi", arguments.fieldSettings ); + if ( Len( renderedContent ?: "" ) ) { + return renderedContent; + } + } catch( any e ) { + $raiseError( e ); } - } + if ( Len( arguments.value ?: "" ) ) { + return arguments.value; + } return $isFeatureEnabled( "dataApiUseNullForStrings" ) ? NullValue() : ""; }