Undefined array key "map_false" ConvertBoolean.php:47

Created on 23 May 2024, 7 months ago

Problem/Motivation

When running this in a migration using the convert_boolean plugin, we receive this error message. We also receive one with "map_true"

Steps to reproduce

Create a boolean field on a node and import a string value of "TRUE" onto this field.

Proposed resolution

I believe the issue lies on lines 47 and 51 for accessing optional map_false and map_true config values. There should be a check to ensure those keys exist on $this->configuration before trying to access them.

๐Ÿ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States peachez

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