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

Đang mở
#38,652 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)
Ngôn ngữ chính
Java
Star
972
Fork
493
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
228

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dotCMS/core

Tất cả issue của dotCMS/core

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.