diff --git a/server/AyaNova/PickList/PickListSqlBuilder.cs b/server/AyaNova/PickList/PickListSqlBuilder.cs index 677eafa0..8c51f6dc 100644 --- a/server/AyaNova/PickList/PickListSqlBuilder.cs +++ b/server/AyaNova/PickList/PickListSqlBuilder.cs @@ -113,7 +113,7 @@ namespace AyaNova.PickList // if (o.ColumnDataType == UiFieldDataType.Tags) { - lSelect.Add($"(array_to_string({valueColumnName},',')"); + lSelect.Add($"(array_to_string({valueColumnName},','))"); //tags can order by without the arraytostring lOrderBy.Add(valueColumnName); @@ -198,7 +198,7 @@ namespace AyaNova.PickList //WHERE //there is a condition where there is no where (inactive=true and no query of any kind) - if (lWhere.Count > 0 || HasTagSpecificQuery || IncludeInactive) + if (lWhere.Count > 0 || HasTagSpecificQuery || IncludeInactive==false) { sb.Append(" where ");