The `node_revision_link_revert` views plugin should consider whether the node has translations.

Created on 25 May 2017, over 7 years ago
Updated 3 December 2021, about 3 years ago

Problem/Motivation

The Revert link produced by the node_revision_link_revert views plugin does not consider whether the content has been translated.

The plugin will always produce a node.revision_revert_confirm link (node/123/revisions/1234/revert) where as the revision page will produce a node.revision_revert_confirm link or a node.revision_revert_translation_confirm link (node/123/revisions/1234/revert/en) depending on whether the node has translations or not.

Proposed resolution

Check for other translations and produce a node.revision_revert_translation_confirm link if the node has more than one translation.

Remaining tasks

  1. Write a test
  2. Fix the plugin result

User interface changes

A different confirm form will be presented if a node has translations that allow you to select whether or not you want to "Revert content shared among translations".

API changes

Plugin output will differ whether or not the node has translations.

Data model changes

N/A

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Views 

Last updated 2 days ago

Created by

🇺🇸United States Jaesin

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024