Problem/Motivation
The entityExists method doesn't properly check null values when building the query conditions. You end up with "LIKE NULL" in the where clause when it should be "IS NULL"
Steps to reproduce
I found this because we have a process that exports existing menu content items and sometimes the description or other properties are actually NULL. I could exclude the null values in my exporter, but I think we can handle this gracefully.
Proposed resolution
Create a separate condition when null is found.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | yaml_content-n3246490-5.patch | 823 bytes | damienmckenna |
Issue fork yaml_content-3246490
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 #2
andyg5000Comment #4
damienmckennaShould the condition() line after the new code be moved into an else{} block?
Comment #5
damienmckennaSomething like this.