- Issue created by @Ana Bozhilova
- π§π¬Bulgaria Ana Bozhilova
The attached patch is fixing the desribed bug:
$option_value = (string) $option_value;: This line explicitly casts $option_value to a string. This ensures that the key is treated as a string in subsequent operations, which is important for consistency, especially when the keys are integers or other types that need to be compared or processed as strings.
- Status changed to Needs review
about 1 year ago 10:42am 22 July 2024 - Status changed to RTBC
11 months ago 7:11pm 23 November 2024 - πΊπΈUnited States jrockowitz Brooklyn, NY
I am not able to replicate this using the attached webform with the below export settings.
Please provide more information including an example webform with screenshot to export settings.
- πΊπΈUnited States cskeers
We ran into this issue as well, and the patch #2 resolved it for us.
It looks like the issue only arises when it is a field with multiple selectable options, but the allowed options is limited. Adjusting the previously provided webform export to limit the first select options to 1, I was able to recreate the issue.
- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
Please create an issue fork and merge request. Please see the comments in #4.
- Status changed to Needs work
about 2 months ago 1:38pm 27 August 2025 - πΊπΈUnited States jrockowitz Brooklyn, NY
The root issue is the option values are being converted to integers in an indexed array.
- Merge request !712Issue #3462726: Webform Export Option "Separate, with each possible option... β (Merged) created by jrockowitz
- πΊπΈUnited States jrockowitz Brooklyn, NY
The root cause is PHP automatically casts incremental numbers in an array to integers. The patch in #2 is the best and safest solution.
-
jrockowitz β
committed e5f457af on 6.3.x
Issue #3462726 by jrockowitz, Ana Bozhilova, cskeers, liam morland:...
-
jrockowitz β
committed e5f457af on 6.3.x
-
jrockowitz β
committed e5f457af on 6.x
Issue #3462726 by jrockowitz, Ana Bozhilova, cskeers, liam morland:...
-
jrockowitz β
committed e5f457af on 6.x