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:
Sam Minnee 2010-01-13 00:02:12 +00:00
parent 27f3dfc6ed
commit a695b6b034

View File

@ -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