Skip to content

Commit

Permalink
Ensure support for array of struct data properties
Browse files Browse the repository at this point in the history
  • Loading branch information
grantcopley committed May 20, 2024
1 parent baaa933 commit f1ac13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Component.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ component output="true" {
Provide file uploads to view
*/
variables.data.each( function( key, value ) {
if ( isArray( arguments.value ) && arguments.value.len() && arguments.value[ 1 ] contains "fileupload:" ) {
if ( isArray( arguments.value ) && arguments.value.len() && isSimpleValue( arguments.value.first() ) && arguments.value[ 1 ] contains "fileupload:" ) {
// This property is holding an array of file uploads.
value.each( function( uuid, index ) {
local.fileUpload = getInstance( dsl="FileUpload@cbwire" ).load(
Expand Down

0 comments on commit f1ac13e

Please sign in to comment.