fixes null checking and ensures that the current property type aliases are passed up when first launching the compositions dialog.

This commit is contained in:
Shannon
2016-01-12 13:46:18 +01:00
parent ee8405ccd0
commit 67994c630f
2 changed files with 19 additions and 8 deletions

View File

@@ -33,7 +33,9 @@ namespace Umbraco.Core.Services
? new string[] { }
: filterContentTypes.Where(x => x.IsNullOrWhiteSpace() == false).ToArray();
if (filterPropertyTypes == null) filterPropertyTypes = new string[] {};
filterPropertyTypes = filterPropertyTypes == null
? new string[] {}
: filterPropertyTypes.Where(x => x.IsNullOrWhiteSpace() == false).ToArray();
//create the full list of property types to use as the filter
//this is the combination of all property type aliases found in the content types passed in for the filter