Permalink
Browse files

Fix #644 (ordering alphabetically would fail when adding to an empty …

…list, which was posibble programatically).
  • Loading branch information...
mawtex committed Jan 3, 2019
1 parent b78aeaa commit 1c27f5a75d3695eb216a2532a53bb0ab26ff963b
Showing with 2 additions and 2 deletions.
  1. +2 −2 Composite/Data/Types/PageInsertPosition.cs
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using Composite.C1Console.Users;
@@ -89,7 +89,7 @@ orderby ps.LocalOrdering

var cultureInfo = UserSettings.CultureInfo;

int targetLocalOrdering = -1;
int targetLocalOrdering = pageStructures.Any() ? -1 : 0;

foreach (IPageStructure pageStructure in pageStructures)
{

0 comments on commit 1c27f5a

Please sign in to comment.