Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Alex Skinner / Alex Skinner (Alex Skinner)
Created: 10/30/2016
Components: Language, Functions
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: CF2016_Update3 /
Priority/Frequency: Major / Some users will encounter
Locale/System: ALL / Mac 10 All
Vote Count: 1
As part of an effort to port an existing application to also work on Adobe ColdFusion we are having problems with the following code.
According to the documentation you should be able to search for structs
<cfscript>
fields = [{"name":"title"},{"name":"main_image"},{"name":"layout"},{"name":"teaser"},{"name":"main_content"},{"name":"sidebar_content"},{"name":"active"}];
writedump(fields); // should have 7 items
for ( field in fields ) {
if (field.name == "layout") {
arraydelete(fields, field);
}
}
writedump(fields); // should now have 6 items
</cfscript>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4197153
External Customer Info:
External Company:
External Customer Name: Alex Skinner
External Customer Email:
External Test Config: N/A
Attachments:
Comments: