mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX prevent calling function on null record
This commit is contained in:
parent
f634ad09db
commit
c34ef60d82
@ -27,7 +27,8 @@ class CMSPageHistoryController extends CMSMain {
|
||||
$form = $this->ShowVersionForm(
|
||||
$request->param('VersionID')
|
||||
);
|
||||
if($this->isAjax()) {
|
||||
|
||||
if($form && $this->isAjax()) {
|
||||
$content = $form->forTemplate();
|
||||
} else {
|
||||
$content = $this->customise(array('EditForm' => $form))->renderWith($this->getViewer('show'));
|
||||
|
@ -20,11 +20,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cms-content-tools west cms-panel" data-expandOnClick="true">
|
||||
|
||||
<h3 class="cms-panel-header"><% _t('FILTER', 'Filter') %></h3>
|
||||
<div class="cms-content-tools west cms-panel cms-panel-layout" data-expandOnClick="true" data-layout="{type: 'border'}">
|
||||
<div class="cms-panel-content center">
|
||||
<h3 class="cms-panel-header"><% _t('FILTER', 'Filter') %></h3>
|
||||
|
||||
<div class="cms-panel-content">
|
||||
$SearchForm
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user