mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
mlanthaler: Bugfix: "if($className == null); $className = $this->stat('subitem_class');" had no effect because of the semicolon after the if-statement.
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41806 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c2f57b75de
commit
ad3aed7930
@ -181,14 +181,14 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
||||
function addmember($className=null) {
|
||||
$data = $_REQUEST;
|
||||
unset($data['ID']);
|
||||
if($className == null);
|
||||
if($className == null)
|
||||
$className = $this->stat('subitem_class');
|
||||
$record = new $className();
|
||||
|
||||
$record->update($data);
|
||||
$record->write();
|
||||
if($data['GroupID'])
|
||||
$record->Groups()->add($data['GroupID']);
|
||||
$record->Groups()->add($data['GroupID']);
|
||||
|
||||
FormResponse::add("reloadMemberTableField();");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user