Select field preview disappears after reordering Replicator sets
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- javascript, laravel, php
調査の方向性
Start by comparing the fullPath watcher in components/ui/Publish/Field.vue with SelectFieldtype.vue's defineReplicatorPreview() and exposure; the issue identifies these as the suspected path. Trace how the Select preview is restored after Replicator sets are reordered, then add or update a regression test for the reproduction steps. Done means the selected option labels remain in collapsed previews after reordering while other preview fields remain intact.
索引モデルが issue の本文から書いたものです。
説明
Bug description
After dragging and dropping Replicator sets, the selected option’s label disappears from the collapsed set’s preview text. Other preview fields, such as the headline, remain visible.
See the attached recording.
https://github.com/user-attachments/assets/fe9849c8-12eb-48b9-9a9c-3805193153e3
How to reproduce
- Create a Replicator set containing a Select field and a Text field, with field previews enabled.
- Add two sets and choose different Select options.
- Collapse both sets. Their summaries show the selected options and text values.
- Drag one set above the other.
- Observe that the Select labels disappear from the summaries.
Logs
Environment
Environment
Laravel Version: 13.38.0
PHP Version: 8.4.6
Composer Version: 2.8.8
Environment: production
Debug Mode: OFF
Maintenance Mode: OFF
Timezone: UTC
Locale: en
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: null
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file
Storage
public/assets/assets_main: LINKED
public/storage: LINKED
Statamic
Addons: 3
License Key: Set
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 6.32.0 PRO
Statamic Addons
cboxdk/statamic-reverse-relationship: 2.1.2
eminos/statamic-tabs: 2.0.1
thoughtco/statamic-restrict-fields: 1.1.0
Installation
Fresh statamic/statamic site via CLI
Additional details
Expected behavior
Reordering sets should preserve their preview text, including selected option labels.
Actual behavior
The Select field’s preview disappears after reordering.
Possible cause
In components/ui/Publish/Field.vue, the watcher for fullPath updates the preview using:
setFieldPreviewValue(fullPath.value, fieldtype.value?.replicatorPreview)
Reordering changes this path. However, SelectFieldtype.vue defines its preview through defineReplicatorPreview() without exposing replicatorPreview through defineExpose().
This appears to cause the path watcher to overwrite the preview with undefined. Since the Select value itself has not changed, its preview watcher may not emit another update.
Related issue
Possibly related to #14071, fixed by #14072. That fix is present in the installed source, but this behavior still occurs. This case involves Select previews disappearing rather than fields from different set types being merged.
- 主要言語
- PHP
- スター
- 4.9k
- フォーク
- 647
- 平均マージ
- 23時間 42分
- マージ済み PR(30日)
- 148
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
statamic/cms のほかの issue
-
tags
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
accessibility
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
antlers
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
antlers modifiers
難易度 2/5 1〜3時間 初心者へのやさしさ 57/100
statamic/cms#15832 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Multisite: switching site in the collection listing opens a different entry, not the localizationオープンmultisite
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
nikic/PHP-Parser#1187 ·
-
15.0
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Icinga/icinga-notifications-web#645 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
OpenMage/magento-lts#5865 ·
メンテナーはふだん 3 日以内に返信