mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +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(
|
$form = $this->ShowVersionForm(
|
||||||
$request->param('VersionID')
|
$request->param('VersionID')
|
||||||
);
|
);
|
||||||
if($this->isAjax()) {
|
|
||||||
|
if($form && $this->isAjax()) {
|
||||||
$content = $form->forTemplate();
|
$content = $form->forTemplate();
|
||||||
} else {
|
} else {
|
||||||
$content = $this->customise(array('EditForm' => $form))->renderWith($this->getViewer('show'));
|
$content = $this->customise(array('EditForm' => $form))->renderWith($this->getViewer('show'));
|
||||||
|
@ -20,11 +20,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="cms-content-tools west cms-panel" data-expandOnClick="true">
|
<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>
|
<h3 class="cms-panel-header"><% _t('FILTER', 'Filter') %></h3>
|
||||||
|
|
||||||
<div class="cms-panel-content">
|
|
||||||
$SearchForm
|
$SearchForm
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user