Merge with 6.0.6

This commit is contained in:
Morten Christensen
2013-05-29 05:38:35 -02:00
2 changed files with 18 additions and 0 deletions

View File

@@ -1215,6 +1215,15 @@ namespace Umbraco.Core.Services
int i = 0;
foreach (var content in items)
{
//If the current sort order equals that of the content
//we don't need to update it, so just increment the sort order
//and continue.
if (content.SortOrder == i)
{
i++;
continue;
}
content.SortOrder = i;
content.WriterId = userId;
i++;

View File

@@ -788,6 +788,15 @@ namespace Umbraco.Core.Services
int i = 0;
foreach (var media in items)
{
//If the current sort order equals that of the media
//we don't need to update it, so just increment the sort order
//and continue.
if (media.SortOrder == i)
{
i++;
continue;
}
media.SortOrder = i;
i++;