Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Adjust the verbiage when reverting a revision #285

Open
wants to merge 3 commits into
base: 8.x-2.x
Choose a base branch
from
Open

Adjust the verbiage when reverting a revision #285

wants to merge 3 commits into from

Conversation

phenaproxima
Copy link
Collaborator

Fixes https://www.drupal.org/node/2854057.

This takes a slightly advanced approach; if the target revision is a forward revision, this will say "switch" instead of "revert". Otherwise, it'll still say "revert". Didn't add tests since this is such a cosmetic change, but could do that if desired.

@balsama
Copy link
Contributor

balsama commented Mar 7, 2017

From 2854057:

If you follow the steps in the original issue, the expected result is:

  • Forward revision is set as default revision
  • Default revision is unpublished
  • Six total revisions remain (image in IS shows six)

Actual results

  • Default revision remains unchanged
  • New forward revision created that is a clone of the forward revision we wanted to make default

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants