Fix warning in Encoder setSettings method

Created on 21 November 2024, 3 days ago

Problem/Motivation

Got this in the logs:

Warning : Undefined array key "trim" dans Drupal\xls_serialization\Encoder\Xls->setSettings() (/var/www/html/web/modules/contrib/xls_serialization/src/Encoder/Xls.php ligne 398)
#0 /var/www/html/web/core/includes/bootstrap.inc(166): _drupal_error_handler_real(2, 'Undefined array...', '/var/www/html/w...', 398)
#1 /var/www/html/web/modules/contrib/xls_serialization/src/Encoder/Xls.php(398): _drupal_error_handler(2, 'Undefined array...', '/var/www/html/w...', 398)
#2 /var/www/html/web/modules/contrib/xls_serialization/src/Encoder/Xls.php(125): Drupal\xls_serialization\Encoder\Xls->setSettings(Array)
Warning : Undefined array key "strip_tags" dans Drupal\xls_serialization\Encoder\Xls->setSettings() (/var/www/html/web/modules/contrib/xls_serialization/src/Encoder/Xls.php ligne 397)
#0 /var/www/html/web/core/includes/bootstrap.inc(166): _drupal_error_handler_real(2, 'Undefined array...', '/var/www/html/w...', 397)
#1 /var/www/html/web/modules/contrib/xls_serialization/src/Encoder/Xls.php(397): _drupal_error_handler(2, 'Undefined array...', '/var/www/html/w...', 397)
#2 /var/www/html/web/modules/contrib/xls_serialization/src/Encoder/Xls.php(125): Drupal\xls_serialization\Encoder\Xls->setSettings(Array)

Proposed resolution

Set both values to TRUE if not found in $settings.

Remaining tasks

Publish, review and validate MR.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France mably

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024