mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
MINOR Re-added LeftAndMain->EditForm() as a complement to getEditForm() - it is necessary for form submissions as well as for template getters
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92712 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9e88dbb8c5
commit
eef51ed50b
@ -820,6 +820,18 @@ JS;
|
|||||||
return FormResponse::respond();
|
return FormResponse::respond();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Uses {@link getEditForm()} to retrieve an edit form
|
||||||
|
* based on the submitted data. Used for form submissions,
|
||||||
|
* not for template rendering.
|
||||||
|
*
|
||||||
|
* @param HTTPRequest $request
|
||||||
|
* @return Form
|
||||||
|
*/
|
||||||
|
function EditForm($request = null) {
|
||||||
|
return $this->getEditForm($request ? $request->requestVar('ID') : null);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the edit form of a specific record. Will usually construct itself
|
* Gets the edit form of a specific record. Will usually construct itself
|
||||||
* from {@link DataObject->getCMSFields()} for the specific managed subclass
|
* from {@link DataObject->getCMSFields()} for the specific managed subclass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user