Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit a9f8d553f41f43b6ba9a501feeead1e50cd843e2 1 parent fa04f03
@chillu chillu authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  code/SecurityAdmin.php
View
3  code/SecurityAdmin.php
@@ -47,7 +47,8 @@ public function init() {
function getEditForm($id = null) {
$form = parent::getEditForm($id);
-
+
+ if(!$id) $id = $this->currentPageID();
if($id && is_numeric($id)) {
$fields = $form->Fields();
Please sign in to comment.
Something went wrong with that request. Please try again.