Fixed test failure reported on CI (2)

This commit is contained in:
AndyButland
2016-10-30 14:16:01 +01:00
parent 8bb3685e5d
commit ece61a45d8
+1 -1
View File
@@ -212,7 +212,7 @@ namespace Umbraco.Core.Services
public void MakeNew(string name, string alias, string icon)
{
var sections = GetSections();
var nextSortOrder = sections != null ? GetSections().Max(x => x.SortOrder) + 1 : 1;
var nextSortOrder = sections != null ? sections.Max(x => x.SortOrder) + 1 : 1;
MakeNew(name, alias, icon, nextSortOrder);
}