tracker issue : CF-3039698

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

Bug 79481:structDelete( ) is case sensitiveThe following code ( when the form is submitted ) outputs:

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): David McGuigan / David McGuigan (David McGuigan)

Created: 08/18/2009

Components: Language, Datastructure

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 259383

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 2

Problem:

structDelete( ) is case sensitiveThe following code ( when the form is submitted ) outputs:
Upper before deletion: 2
Upper after deletion: 1
Camel before deletion: 2
Camel after deletion: 2
Method:

<cfoutput>
	<form action="" method="post">
		testField: <input type="text" name="testField" /><br/>
		<input type="submit" />
	</form>

	<cfif structCount( form ) gt 0 >
		<cfset bugUppercase( argumentCollection = form ) />
		<cfset bugCamelcase( argumentCollection = form ) />
	</cfif>


	<cffunction name="bugUppercase" >

		Upper before deletion: #structCount( arguments )#<br/>
		<cfset structDelete( arguments, "TESTFIELD" ) />
		Upper after deletion: #structCount( arguments )#<br/>

	</cffunction>


	<cffunction name="bugCamelcase" >

		Camel before deletion: #structCount( arguments )#<br/>
		<cfset structDelete( arguments, "testField" ) />
		Camel after deletion: #structCount( arguments )#<br/>

	</cffunction>
</cfoutput>
Result:

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

Watson Bug ID:	3039698

External Customer Info:
External Company:  
External Customer Name: David McGuigan
External Customer Email: 5E0D54C04462BF5E992016B6
External Test Config: 08/18/2009

Attachments:

Comments:

This bug has been voted..
Vote by External U.
23029 | November 10, 2011 07:02:02 PM GMT
This bug has been voted..
Vote by External U.
23030 | November 10, 2011 07:02:04 PM GMT