mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02: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();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
* from {@link DataObject->getCMSFields()} for the specific managed subclass
|
||||
|
Loading…
Reference in New Issue
Block a user