From ae83b7b5ef28df5f5b3f752435f3b36b078f619a Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Fri, 7 Oct 2016 16:33:03 +0100 Subject: [PATCH] FIX History controller now shows right comparison versions --- code/controllers/CMSPageHistoryController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/CMSPageHistoryController.php b/code/controllers/CMSPageHistoryController.php index f079b3b5..fa02580a 100644 --- a/code/controllers/CMSPageHistoryController.php +++ b/code/controllers/CMSPageHistoryController.php @@ -394,7 +394,7 @@ class CMSPageHistoryController extends CMSMain { } if(isset($record)) { - $form = $this->getEditForm($id, null, null, true); + $form = $this->getEditForm($id, null, $fromVersion, $toVersion); $form->setActions(new FieldList()); $form->addExtraClass('compare');