Skip to content

Commit

Permalink
Replaced hardcoded "-1" with Constants.System.RootString
Browse files Browse the repository at this point in the history
  • Loading branch information
leekelleher committed Mar 29, 2019
1 parent b44360a commit 533d2cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Umbraco.Core/Services/Implement/MediaService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ private void PerformMoveLocked(IMedia media, int parentId, IMedia parent, int us
// if uow is not immediate, content.Path will be updated only when the UOW commits,
// and because we want it now, we have to calculate it by ourselves
//paths[media.Id] = media.Path;
paths[media.Id] = (parent == null ? (parentId == Constants.System.RecycleBinMedia ? "-1,-21" : "-1") : parent.Path) + "," + media.Id;
paths[media.Id] = (parent == null ? (parentId == Constants.System.RecycleBinMedia ? "-1,-21" : Constants.System.RootString) : parent.Path) + "," + media.Id;

const int pageSize = 500;
var page = 0;
Expand Down

0 comments on commit 533d2cf

Please sign in to comment.