Fatal error if view title is longer than 31 characters

Created on 24 January 2023, almost 2 years ago

Problem/Motivation

When generating the export, got
Drupal\Component\Serialization\Exception\InvalidDataTypeException: Maximum 31 characters allowed in sheet title. in Drupal\views_data_export_phpspreadsheet\Encoder\XlsEncoder->encode() (line 283 of modules/contrib/views_data_export_phpspreadsheet/src/Encoder/XlsEncoder.php).

Steps to reproduce

Give the view or data export display a title with more than 31 characters then click the button "export"

Proposed resolution

truncate the title

Remaining tasks

provide a patch

🐛 Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

🇧🇪Belgium stred

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

Comments & Activities

Production build 0.71.5 2024