Skip to content

[5.x]: Toast notification for saving an address without a title is broken #18481

@MoritzLost

Description

@MoritzLost

What happened?

Description

When the title in the address field layout is made optional and left empty, the toast notification shows an empty element chip in the toast notification:

Image

(Label is in German, same thing happens in English).

Steps to reproduce

  1. Go to Settings -> Addresses, and set the title to optional.
  2. Create an Addresses field and add it to an entry type.
  3. In any entry of that type, create a new address and save it, then edit and save it again.
  4. Check the toast notification at the bottom left.

Expected behavior

Either show the address, or a generic fallback label, or don't show an element chip here at all.

Alternatively, maybe addresses should also get the UI Label Format setting that was recently added to Entries?

Actual behavior

The notification looks broken.

Craft CMS version

5.9.13

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions