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.

Comments

BetoAveiga created an issue. See original summary.

betoaveiga’s picture

Adding patch.

cilefen’s picture

Status: Active » Postponed (maintainer needs more info)
Related issues: +#3277238: Fix \Drupal\taxonomy\Entity\Term::getName() to conform to the interface

Version: 9.4.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

pameeela’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
Issue tags: +Bug Smash Initiative