Problem/Motivation

File field set setting "Files displayed by default".

screenshot

But when checkbox "Files displayed by default" is checked new files added with unchecked checkbox "Display"

Steps to reproduce

  1. Add new file field to entity
  2. In field settings check "Enable Display field" and "Files displayed by default"
  3. Create new entity and attach new file
  4. "Display" checkbox will be unchecked but must be checked

Proposed resolution

Apply my patch with fixes

CommentFileSizeAuthor
#2 core-3397495-1.patch1.11 KBivnish
2023-10-29_14-54.png16.39 KBivnish

Comments

ivnish created an issue. See original summary.

ivnish’s picture

StatusFileSize
new1.11 KB
ivnish’s picture

Status: Active » Needs review
ivnish’s picture

Assigned: Unassigned » ivnish
Issue tags: +Needs tests
ivnish’s picture

I will make tests but it take some time

smustgrave’s picture

Status: Needs review » Needs work

May be an existing test you could probably expand with an additional assertion.

ivnish’s picture

Status: Needs work » Needs review

Yes, of course

ivnish’s picture

Status: Needs review » Needs work
ivnish’s picture

Component: file.module » Claro theme
Status: Needs work » Active

It is not core bug, it is Claro theme specific bug.

justcaldwell’s picture

ivnish’s picture

Assigned: ivnish » Unassigned
Status: Active » Closed (duplicate)
Issue tags: -Needs tests

Yes, you are right