[5.x]: No Color option not appear as card attribute in Matrix View Mode Card
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by tracing how Matrix card attributes render a Color field when it has no selected value, then compare that path with the rendering of a populated Color field. The report identifies Card Attributes and the native “No Color” state, but names no source files or tests. Done means the card shows an attribute or empty state for an unset Color field.
索引モデルが issue の本文から書いたものです。
説明
What happened?
Description
When using the Card layout for a Matrix field, if an entry includes a Color field that is left unset (defaulting to the native "No Color" option), this state cannot be displayed as a Card Attribute.
Because the "No Color" option cannot be manually removed or replicated as a custom value, there is currently no way to let content editors see at a glance on the card preview that the color has been left empty/unset.
Steps to reproduce
- Create a Color field. Leave it optional so the native "No Color" option acts as the default.
- Create an entry type used inside a Matrix field, and add this Color field to it.
- Under Card Attributes, choose to display the Color field.
- In the Matrix field's field settings, change the view mode to Cards.
- Create an entry, leave the Color field as "No Color", and save.
Expected behavior
The card preview in the Matrix field should display an attribute indicator showing that "No Color" (or an empty state indicator) is selected.
Actual behavior
The attribute does not appear on the card at all when "No Color" is selected, making it look as though the field doesn't exist or isn't being tracked on the card layout.
Craft CMS version
5.11.3 && 5.12.0.1
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
- 主要言語
- PHP
- スター
- 3.6k
- フォーク
- 712
- 平均マージ
- 12時間 44分
- マージ済み PR(30日)
- 381
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
craftcms/cms のほかの issue
-
bug repo:cms
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
craftcms/cms#20205 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
craftcms/cms#20203 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[5.x]: Moving an asset with “Replace it” throws TypeError: volumeUid must be of type string, null given対応中かも @i-just が 8 日前に担当しました。 オープンbug repo:cms
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
craftcms/cms#20128 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
craftcms/cms#20386 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
repo:cms
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
craftcms/cms#20385 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
No Code Attached Yet
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
joomla/joomla-cms#48786 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Icinga/icingaweb2-module-director#3188 ·
メンテナーはふだん 4 日以内に返信
-
bug ui
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
hashtopolis/server#2614 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信