Skip to content

Commit

Permalink
PRESIDECMS-2686 include assets from form definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixl8RusselCole committed Aug 16, 2023
1 parent b0b775e commit 95d3c4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions system/services/forms/FormsService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,12 @@ component displayName="Forms service" {

interceptorArgs.rendered = coldbox.renderViewlet( event=arguments.formLayout, args=formArgs );


var formDefinition = getForm( mergedFormName );
for ( var asset in ListToArray( formDefinition.assets ?: "" ) ) {
$getRequestContext().include( asset );
}

$announceInterception( "postRenderForm", arguments );

return interceptorArgs.rendered;
Expand Down

0 comments on commit 95d3c4c

Please sign in to comment.