diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php index 0d832f21..3ef4ad85 100644 --- a/code/SecurityAdmin.php +++ b/code/SecurityAdmin.php @@ -47,7 +47,8 @@ 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();