Upload count is incorrect in getTotal method of WebformSubmissionExportImportImporter

Created on 13 September 2023, over 1 year ago

Problem/Motivation

The confirmation message prior to uploading new webform submissions reports the incorrect total in some cases where newlines are included as part of a column in the source CSV.

Steps to reproduce

Upload a CSV with new lines in a text field.

Proposed resolution

Replace `fgets()`with `fgetcsv()` in getTotal() method.

πŸ› Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ben.hamelin Adirondack Mountains, NY

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

Comments & Activities

Production build 0.71.5 2024