FIxes SQL statement when upgrading with SQLCE and fixes GetAll when passing in an array of ints to ensure that we check if the int array is empty or not

This commit is contained in:
Shannon
2017-07-05 18:23:51 +10:00
parent bba7b15125
commit 03c7429653
4 changed files with 19 additions and 14 deletions

View File

@@ -194,8 +194,11 @@ namespace Umbraco.Web.Models.Mapping
var allContentPermissions = applicationContext.Services.UserService.GetPermissions(group, true)
.ToDictionary(x => x.EntityId, x => x);
var contentEntities = allContentPermissions.Keys.Count == 0
? new IUmbracoEntity[0]
: applicationContext.Services.EntityService.GetAll(UmbracoObjectTypes.Document, allContentPermissions.Keys.ToArray());
var contentEntities = applicationContext.Services.EntityService.GetAll(UmbracoObjectTypes.Document, allContentPermissions.Keys.ToArray());
var allAssignedPermissions = new List<AssignedContentPermissions>();
foreach (var entity in contentEntities)
{