Problem/Motivation
When creating a term, I'm having issues because the trim function is receiving a NULL value at core/modules/taxonomy/src/TermForm.php.
Steps to reproduce
- Go to create a term page
- Save
- The warning is thrown
Proposed resolution
When NULL, pass an empty string.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | issue-3339650--avoid-trim-warnings-due-to-null-value.patch | 660 bytes | betoaveiga |
Comments
Comment #2
betoaveigaAdding patch.
Comment #3
cilefen commentedThis looks like a duplicate of #3277238: Fix \Drupal\taxonomy\Entity\Term::getName() to conform to the interface. Can you confirm?
Comment #5
pameeela commentedDefinitely fixed in #3277238: Fix \Drupal\taxonomy\Entity\Term::getName() to conform to the interface