mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
API CHANGE Removed LeftAndMain->getLastFormIn(), please use Form->formHtmlContent() instead
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92738 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8f82a04377
commit
25ba16223a
@ -31,7 +31,8 @@ class CommentAdmin extends LeftAndMain {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function showtable($params) {
|
public function showtable($params) {
|
||||||
return $this->getLastFormIn($this->renderWith('CommentAdmin_right'));
|
$form = $this->getEditForm();
|
||||||
|
return $form->formHtmlContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Section() {
|
public function Section() {
|
||||||
|
@ -358,10 +358,6 @@ class LeftAndMain extends Controller {
|
|||||||
if($form) return $form->formHtmlContent();
|
if($form) return $form->formHtmlContent();
|
||||||
else return "";
|
else return "";
|
||||||
}
|
}
|
||||||
public function getLastFormIn($html) {
|
|
||||||
$parts = split('</?form[^>]*>', $html);
|
|
||||||
return $parts[sizeof($parts)-2];
|
|
||||||
}
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------------//
|
//------------------------------------------------------------------------------------------//
|
||||||
// Main UI components
|
// Main UI components
|
||||||
|
@ -143,11 +143,7 @@ class ReportAdmin extends LeftAndMain {
|
|||||||
if(Director::is_ajax()) {
|
if(Director::is_ajax()) {
|
||||||
SSViewer::setOption('rewriteHashlinks', false);
|
SSViewer::setOption('rewriteHashlinks', false);
|
||||||
|
|
||||||
$result = $this->customise(array(
|
return $form->formHtmlContent();
|
||||||
'EditForm' => $editForm
|
|
||||||
))->renderWith($this->getTemplatesWithSuffix('_right'));
|
|
||||||
|
|
||||||
return $this->getLastFormIn($result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return array();
|
return array();
|
||||||
|
Loading…
Reference in New Issue
Block a user