sameFormFieldsAsArray converts all fields to arrays

Description

When sameFormFieldsAsArray is set to true in Application.cfc, all form fields are converted to arrays, not just those with the same name.

I set up a repro case here: https://github.com/mjclemente/lucee-error-sameFormFieldsAsArray

ACF handles this setting in the expected manner, only converting form fields to arrays if there is more than one with the same name.

Environment

I tested this with CommandBox.

Status

Assignee

Michael Offner

Reporter

Matthew Clemente

Sprint

None

Fix versions

Affects versions

5.3.1.102

Priority

Major
Configure