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

Created on 25 May 2017, about 7 years ago
Updated 16 January 2024, 6 months 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 less than a minute 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

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.69.0 2024