Problem/Motivation

Problem with entity override state workflow.

Steps to reproduce

  • Create an Entity view display and allow override
  • Create an entity content and override display
  • Do something and 'Publish' -> new instance created for this node and 'Revert' available
  • Click 'Revert'
  • The instance is deleted, back to default display, we have 'Publish' and 'Restore' available
  • Click 'Restore' will empty the display has we have no previous published

Proposed resolution

Restore should be available only if a published version exist somewhere in the history.

On src/PublishableInterface.php we have isPublishedPresent, perhaps we need a flag like hasPublishedRevision?

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mogtofu33 created an issue. See original summary.

mogtofu33’s picture

  • mogtofu33 committed 6db74bf7 on 1.0.x
    fix: #3613399 Entity override Revert -> Restore logic
    
    By: mogtofu33
    
mogtofu33’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.