Merge pull request #1640 from dhensby/pulls/3.4/fix-history-versions

FIX History controller now shows right comparison versions
This commit is contained in:
Damian Mooyman 2016-10-12 09:11:45 +13:00 committed by GitHub
commit 17a471a47a

View File

@ -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');