lightning icon indicating copy to clipboard operation
lightning copied to clipboard

Adjust the verbiage when reverting a revision

Open phenaproxima opened this issue 8 years ago • 1 comments

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.

phenaproxima avatar Mar 06 '17 18:03 phenaproxima

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

balsama avatar Mar 07 '17 16:03 balsama