mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
FIX History controller now shows right comparison versions
This commit is contained in:
parent
f9697f75cd
commit
ae83b7b5ef
@ -394,7 +394,7 @@ class CMSPageHistoryController extends CMSMain {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(isset($record)) {
|
if(isset($record)) {
|
||||||
$form = $this->getEditForm($id, null, null, true);
|
$form = $this->getEditForm($id, null, $fromVersion, $toVersion);
|
||||||
$form->setActions(new FieldList());
|
$form->setActions(new FieldList());
|
||||||
$form->addExtraClass('compare');
|
$form->addExtraClass('compare');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user