Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ProductContentQuery Contrain By IEnumerable<IProductFilter> Does not work #2283
I am getting an IEnumerable which contains two filters.
I then pass it to the ProductContentQuery Constrain By and it does not find the two products. If I only have one filter in the list then it works fine but it does not work with multiple entries.
IProductFilterGroup filterGroups = this._merchelloHelper.Filters.Product.GetAll().SingleOrDefault(fg => fg.Name == "Brand");
IEnumerable filters = filterGroups?.Filters.Where(f => searchTerms.Contains(f.Name));
PagedCollection products = this._merchelloHelper.ProductContentQuery().ConstrainBy(filters).Execute();
I think this is a bug unless I am doing something wrong?