Webform Submission Import/Export: Batch Imports incomplete when cells include newlines

Created on 16 January 2026, 5 days ago

When batch importing, the offset is fast forwarded using fgets() to jump ahead by the offset number of lines, but if your CSV has fields that include newlines in the value, this won't actually offset it by the right amount and you'll end up with errors like Row #101: 123 values expected and only 1 found

I think the fix is to just use fgetscsv() when advancing the offset. It's what we do in ::getTotal() to get the count so it seems logical here. MR incoming!

🐛 Bug report
Status

Active

Version

6.2

Component

Submissions

Created by

🇨🇦Canada drclaw

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024