Fix not shown Media header when node status is Draft

Created on 15 January 2024, 11 months ago
Updated 16 April 2024, 8 months ago

Problem/Motivation

The Media header is not shown when the node status changes from published to Draft.

Steps to reproduce

1- Install the module
2- enable it on the basic page
3- Place the block
4- Create a node with Draft status.

Proposed resolution

  • Add the needed route entity.node.latest_version to be checked in build.
  • Load the node with the from the route match with last revision id for the draft.

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-10.0.0-rc2 , Varbase 9.1.1 , varbase_media_header-9.1.3 , varbase_media_header-10.0.0-rc1

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

After the fix:

Revisions for a test content

Edit test content - with Varbase Media Header support

View the last published edit for the test content

The preview for the full content view mode for the test content

The Draft view for the latest revision edit ( on the Body and Main Media Header )

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.0

Component

Code

Created by

🇯🇴Jordan ahmad abbad Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024