tracker issue : CF-3851982

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: structFilter/struct.filter() UDF arguments missing struct

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 11/14/2014

Components: Language

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final / CF11 Update5

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Win All

Vote Count: 1

Listed in the version 11.0.05.293506 Issues Fixed doc
The struct argument is missing within the UDF passed to structFilter/struct.filter()

Repro (just uncomment each and run):

<cfscript>
  function myFunction(){writeDump(ARGUMENTS); abort;}
  
  /*myStruct = {one="b",two="a",three="c"};
  writeOutput(structFilter(myStruct, myFunction));//bug: struct argument is missing w/in UDF*/
  
  /*myStruct = {one="b",two="a",three="c"};
  writeOutput(myStruct.filter(myFunction));//bug: struct argument is missing w/in UDF*/
</cfscript>

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3851982

Keywords:
FixTested


External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:

Attachments:

Comments:

+1 & subscribe ///////////////////////
Vote by External U.
10094 | November 14, 2014 06:27:14 AM GMT
Updated the callback function of StructFilter to 'function(key, value, [, struct])'
Comment by Nikhil S.
10091 | November 21, 2014 03:54:08 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
10092 | February 20, 2015 09:26:58 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). Thanks!, -Aaron
Comment by External U.
10093 | November 21, 2015 09:22:02 PM GMT