This commit is contained in:
2020-02-11 23:46:28 +00:00
parent 9ae5156105
commit ddbc8d5471
4 changed files with 11 additions and 46 deletions

View File

@@ -13,7 +13,7 @@ namespace AyaNova.DataList
{
//Build the SELECT portion of a list query based on the template, mini or full and the object key in question
internal static string Build(List<AyaDataListFieldDefinition> objectFieldsList, string template, bool mini)
internal static string Build(List<AyaDataListFieldDefinition> objectFieldsList, string template, bool? mini)
{
//parse the template
@@ -22,7 +22,7 @@ namespace AyaNova.DataList
//convert to strings array (https://stackoverflow.com/a/33836599/8939)
string[] templateFieldList;
if (mini)
if (mini!=null && mini==true)
{
templateFieldList = ((JArray)jtemplate["mini"]).ToObject<string[]>();
}