mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
API CHANGE Deprecated LeftAndMain->getitem(), please use show() instead
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92744 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
64e042a2a3
commit
1308153458
@ -343,16 +343,10 @@ class LeftAndMain extends Controller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated 2.4 Please use show()
|
||||||
|
*/
|
||||||
public function getitem() {
|
public function getitem() {
|
||||||
$this->setCurrentPageID($_REQUEST['ID']);
|
|
||||||
SSViewer::setOption('rewriteHashlinks', false);
|
|
||||||
|
|
||||||
if(isset($_REQUEST['ID']) && is_numeric($_REQUEST['ID'])) {
|
|
||||||
$record = DataObject::get_by_id($this->stat('tree_class'), $_REQUEST['ID']);
|
|
||||||
if($record && !$record->canView()) return Security::permissionFailure($this);
|
|
||||||
}
|
|
||||||
|
|
||||||
$form = $this->getEditForm();
|
$form = $this->getEditForm();
|
||||||
if($form) return $form->formHtmlContent();
|
if($form) return $form->formHtmlContent();
|
||||||
else return "";
|
else return "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user