Skip to content

Commit

Permalink
BUGFIX Falling back to currentPageID() in SecurityAdmin->getEditForm(…
Browse files Browse the repository at this point in the history
…) 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
chillu committed Feb 23, 2010
1 parent fa04f03 commit a9f8d55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/SecurityAdmin.php
Expand Up @@ -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();

Expand Down

0 comments on commit a9f8d55

Please sign in to comment.