mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX: Don't set the Owner by default on new records. (from r89910)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96796 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
27f3dfc6ed
commit
a695b6b034
@ -531,9 +531,6 @@ JS;
|
|||||||
$newItem->Sort = DB::query("SELECT MAX(\"Sort\") FROM \"SiteTree\" WHERE \"ParentID\" = '" . Convert::raw2sql($parentID) . "'")->value() + 1;
|
$newItem->Sort = DB::query("SELECT MAX(\"Sort\") FROM \"SiteTree\" WHERE \"ParentID\" = '" . Convert::raw2sql($parentID) . "'")->value() + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( Member::currentUser() )
|
|
||||||
$newItem->OwnerID = Member::currentUser()->ID;
|
|
||||||
|
|
||||||
if($setID) $newItem->ID = $id;
|
if($setID) $newItem->ID = $id;
|
||||||
|
|
||||||
# Some modules like subsites add extra fields that need to be set when the new item is created
|
# Some modules like subsites add extra fields that need to be set when the new item is created
|
||||||
|
Loading…
Reference in New Issue
Block a user