This commit is contained in:
2021-02-08 15:00:09 +00:00
parent a4f6ae4356
commit fd1b3fc18c
2 changed files with 79 additions and 46 deletions

View File

@@ -191,10 +191,8 @@ namespace AyaNova.DataList
public List<DataListFilterOption> DataListInternalCriteria(long currentUserId, AuthorizationRoles userRoles, string clientCriteria)
{
List<DataListFilterOption> ret = new List<DataListFilterOption>();
//ClientCriteria is optional for this list
//Format for this list is "PARTID,WAREHOUSENAME" where the id is 0 if not filtered or the id to filter
//and bizarrely the warehousename is text or empty if not filtered
//ClientCriteria format for this list is "OBJECTID,AYATYPE"
var crit = (clientCriteria ?? "").Split(',').Select(z => z.Trim()).ToArray();
if (crit.Length > 1)
{