Problem/Motivation

RevisionControllerTrait doesn't properly generate the operations links render array. Furthermore RevisionOverviewController::buildRevertRevisionLink() checks for a non-existent link template.

Proposed resolution

Check for "revision-revert-form" (and "revision-delete-form") link templates in RevisionOverviewController::buildRevertRevisionLink() and format them as "operations" links in RevisionControllerTrait::revisionOverview().

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

paranojik created an issue. See original summary.

paranojik’s picture

Fix and test for the above.

slashrsm’s picture

Status: Needs review » Reviewed & tested by the community

  • dawehner committed 68d3116 on 8.x-1.x authored by paranojik
    Issue #2717937 by paranojik: RevisionControllerTrait doesn't properly...

  • dawehner committed 68d3116 on 8.x-2.x authored by paranojik
    Issue #2717937 by paranojik: RevisionControllerTrait doesn't properly...
  • dawehner committed ebc11c7 on 8.x-2.x authored by paranojik
    Issue #2717937 by paranojik: RevisionControllerTrait doesn't properly...
dawehner’s picture

Status: Reviewed & tested by the community » Fixed

Works for me, we add test coverage and fix the bug. Thank you for providing the test!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Status: Closed (fixed) » Needs work

The last submitted patch, 2: revisioncontrollertrait-2717937-2.patch, failed testing.

Berdir’s picture

Status: Needs work » Closed (fixed)

Too late testbot.