How can you disable the sameformfieldsasarray
when you have an Application.cfm
file?
I'm porting a legacy application from ColdFusion 9 to ColdFusion 10. The site uses an old school Application.cfm
file.
I see that 10 added a new setting (this.sameformfieldsasarray
) that you can enable that will combine form variables into an array when there is more than one of them. This is supposed to be off by default, but unfortunately it's "on" for the fresh installation I just set up.
I can't set this.sameformfieldsasarray
false because we've got Application.cfm
instead of Application.cfc
, and I can't find anything in the admin or documentation.
The code is run from a fresh install of CF10 on Ubuntu 12.04 x64. @Adam verified that the sample code worked on Windows Server 2003 x64.
Code: https://gist.github.com/2931343
Screenshot of sample submit: https://i.sstatic.net/mNRsY.jpg
Screenshot of server scope: https://i.sstatic.net/WWHih.jpg
Bug report submitted: https://bugbase.adobe.com/index.cfm?event=bug&id=3214734
This issue is now resolved in ColdFusion 10 Update 1 which was released on 31st August 2012.
Applying the update should resolve the issue and allow workarounds such as the one suggested by Mark A Kruger to be removed.