tracker issue : CF-4198802

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

sameformfieldsasarray not working when using Application.cfm

| View in Tracker

Status/Resolution/Reason: To Test//Fixed

Reporter/Name(from Bugbase): gavy randhawa / gavy randhawa ()

Created: 05/30/2017

Components: Language

Versions: 2016,11.0,2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 11 /

Priority/Frequency: Normal / Most users will encounter

Locale/System: English / Win 2000 All

Vote Count: 0

Problem Description:
When i use Application.cfm file and set the Value of the sameformfieldsasarray = true, it still shows the values as List, Instead of Array
Steps to Reproduce:
1. Create a Folder
2. Create Application.cfm file and inside that create a cfapplication tag and underneath it write the <cfset this.sameformfieldsasarray = true>
3. Now create an Index.cfm file and create a form and keep the name of all the input fields to anyname[]  and then click submit. 
4. On the action Page, it will keep showing you the values as List, not as an array, 
I tried re-initializing the Application Scope, which i should not but still same behavior, Showing as a list
Actual Result:
It displays the form values as a comma separated list values
Expected Result:
Should display Array
Any Workarounds:
Probably use Application.cfc, but it breaks legacy applications which runs on old system.

Attachments:

Comments:

Hi Gavy, We have not added the setting “sameformfieldsasarray “ in the cfapplication tag which is a bug. We will fix this. Thanks for reporting it. Thanks, Suchika
Comment by Suchika S.
634 | May 31, 2017 03:22:32 PM GMT