Problem/Motivation
I discovered a regression coming from #3306211: Deprecated function: trim(): Passing null is deprecated as of PHP 8. When the BooleanTarget receives a value that is not a string, it will automatically evaluate to FALSE.
This is problematic for example when the source value is the integer 1 and that one is mapped to "Published status". I noticed on a site that a lot of content got unpublished.
Steps to reproduce
Proposed resolution
Rework the BooleanTarget, make sure that several values get converted to a boolean. Add tests for several types of inputs.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork feeds-3324981
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
megachrizAnd merged this bugfix!
Comment #6
megachrizComment #7
bwoods commentedThanks for posting and fixing so quickly! I ran into this issue and originally thought I was receiving bad data and/or something had been broken in the configuration. I initially created a custom Tamper hack to temporarily fix, so I'm glad to see a better solution than that!