Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add override for Workflow editing #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pmh1
Copy link

@pmh1 pmh1 commented Jun 24, 2019

Why it's needed

If you are using the Workflow extra every time you edit a resource it creates a copy of the original resource (revision) that you edit and only when the revision is approved does it replace the original. If you have a constraints based on the current resource's id, it will not work when you try to select resources while editing the revision.

What it does

It checks if the current resource is a revision and if it is, substitutes the id passed to the connector with the original (source) resource's id.

Check if Preview resource revision is set indicating that we are editing a revision and not the actual page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant