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...
1 parent fa04f03 commit a9f8d553f41f43b6ba9a501feeead1e50cd843e2 @chillu chillu committed Feb 23, 2010
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();

0 comments on commit a9f8d55

Please sign in to comment.