Title:
CFCLIENT: Data structure: structFindValue : structFindValue functions returns an array of struct, path value of this struct shows array index of 2 when it should be 3
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / ext-user (Anuj Nawani)
Created: 04/08/2014
Components: Mobile Support, Data Structure
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: 289685 / CF11 Update5
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Windows 7 64-bit
Vote Count: 0
Code snippet:
<div id="actual_4" class="actual">
<cfclient>
<cfset a="#structNew()#">
<CFSET a.Array = arrayNew(1)>
<CFSET a.Array[1] = "unclekracker - Will not find this">
<CFSET a.Array[2] = structNew()>
<CFSET a.Array[3] = structNew()>
<CFSET a.Array[3].secondstructure = structNew()>
<CFSET a.Array[3].secondstructure.nestedstructure = structNew()>
<CFSET a.Array[3].secondstructure.nestedstructure["SmashMouth"] = "Road Man">
<cfset sArg1= "Road Man">
<CFSET x = structFindValue(a, "#sArg1#","all")>
<cfoutput>#x[1].path#</cfoutput>
</cfclient>
</div>
Expected: .ARRAY[3].SECONDSTRUCTURE.NESTEDSTRUCTURE.SmashMouth
Actual : .Array.2.secondstructure.nestedstructure.SmashMouth
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3738564
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: