Skip to content

[5.9.5]: New elements added to a relational field don't respect the view mode setting #18362

@wsydney76

Description

@wsydney76

What happened?

Description

If a relation field (here: assets) is set to view mode = 'Card grid', this is initially not respected when a new element is added:

Image

Refreshing the page fixes this.

Steps to reproduce

  1. Create an assets field with View Mode = Card grid
  2. Add an element

Expected behavior

Show up as card

Actual behavior

Shows up as in 'list'

Craft CMS version

Craft Solo 5.9.5

PHP version

8.4.14

Operating system and version

Linux 5.15.167.4-microsoft-standard-WSL2

Database type and version

MySQL 8.0.40

Image driver and version

Imagick 3.8.0 (ImageMagick 6.9.11-60)

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