BUGFIX Falling back to currentPageID() in SecurityAdmin->getEditForm() to allow actions like MemberTableField->export() to pass the group ID as a POST parameter instead

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@99685 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-02-23 03:30:47 +00:00
parent fa04f03b0f
commit a9f8d553f4

View File

@ -48,6 +48,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
function getEditForm($id = null) {
$form = parent::getEditForm($id);
if(!$id) $id = $this->currentPageID();
if($id && is_numeric($id)) {
$fields = $form->Fields();