New Edit Content: a historical version opened from the History tab is editable instead of read-only

オープン
#38,652 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java, typescript
領域
frontend

調査の方向性

Start in core-web/libs/edit-content/src/lib/components/dot-edit-content-form/dot-edit-content-form.component.ts at the TODO on line 377, then read the skipped spec at dot-edit-content-form.component.spec.ts:1865. Restore the historical view's disabled state and banner, and check that leaving it restores the working version without marking the form dirty. Run the restored spec to confirm the acceptance criteria.

索引モデルが issue の本文から書いたものです。

説明

dotCMS: New Edit Contentlet Team : Scout Type : Defect
Problem Statement

Selecting an older version in the History tab loads it into the form, but the form stays enabled. The author can type into fields of a version that is not the working one, and the "unsaved changes" prompt then refers to edits that cannot be meaningfully saved. The read-only switch was removed during a refactor and left as a TODO; the spec that covered it is skipped.

Steps to Reproduce
  1. Open a contentlet with at least two versions in the new Edit Content Screen.
  2. In the sidebar, open History and click an older version.
  3. Click into any field and type.

Expected: fields are disabled while a historical version is shown, with a visible "viewing version from " state and a way back. Actual: fields accept input.

Acceptance Criteria
  • While a historical version is displayed, every field and the workflow actions are disabled, and a banner states which version is shown.
  • Leaving the historical view restores the working version and re-enables the form without marking it dirty.
  • The skipped spec "should disable / enable form when exiting historical version view" is restored and passes.
dotCMS Version

main (2026-11-18)

Severity

Serious

Links
  • #38634 pillar; History redesign #38033
  • Code: core-web/libs/edit-content/src/lib/components/dot-edit-content-form/dot-edit-content-form.component.ts:377 (TODO), dot-edit-content-form.component.spec.ts:1865 (it.skip)
主要言語
Java
スター
972
フォーク
493
平均マージ
2日 12時間
マージ済み PR(30日)
228

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotCMS/core のほかの issue

dotCMS/core の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。