Skip to content

Commit

Permalink
Merge pull request #23 from creative-commoners/pulls/1.0/url-priority
Browse files Browse the repository at this point in the history
FIX Lower URL priority so controller is not auto loaded over CMSPageHistoryController
  • Loading branch information
robbieaverill authored Jun 17, 2018
2 parents 984a84b + 848bade commit 8b54dcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/CMSPageHistoryViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CMSPageHistoryViewerController extends CMSMain

private static $url_rule = '/$Action/$ID/$VersionID/$OtherVersionID';

private static $url_priority = 42;
private static $url_priority = 41;

private static $required_permission_codes = 'CMS_ACCESS_CMSMain';

Expand Down
2 changes: 2 additions & 0 deletions tests/Behat/features/revert-to-a-version.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Feature: Revert to a version

Background:
Given a "page" "Home" with "Content"="Initial version"
And I have a config file "enable-historyviewer.yml"

Given I am logged in with "ADMIN" permissions
And I go to "/admin/pages"
And I click on "Home" in the tree
Expand Down

0 comments on commit 8b54dcd

Please sign in to comment.