Developer forum

Forum » CMS - Standard features » Assortments Add Product Error

Assortments Add Product Error

Henning Jensen
Reply

Hi.

There is a bug in the assortment "add product" search when added a product with comma in its name.

It makes the assortment useless as you cant add more products from any view.

 

How to replicate:

 Make a product with comma in its name.

 Search(!) for it in the "add product" view in the assortment and add it. If you use the group tree view you wont get the error

 Save and close.

 Now go back to the "add product" view and search for something. The page should now give you server error:

[NullReferenceException: Object reference not set to an instance of an object.]
   Dynamicweb.Admin.eComBackend._Closure$__73._Lambda$__247(Product x) +11
   System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source, Func`2 predicate) +183
   Dynamicweb.Admin.eComBackend.EcomGroupTree2.ProductListSearch(String groupID) +1514

 

 

What I think is happening:

When the product with comma gets added, it adds another product relation with the part after comma as the product ID.

So when it looks up what products that has been added it looks for parts of a product name instead of the ID and fails.

 

tested on version 8.8.0.4

comma_error_1.png comma_error_2.png comma_error_3.png comma_error_4.png

Replies

 
Christian Rud Skovgaard
Reply

Hi!

This bug has been reproduced and registered as bug TFS-23260.

We hope to fix it in an upcomming hotfix!

Kind regards Christian

 
Kristian Kirkholt
Reply

Hi Henning

The problem TFS#23260 "Error occurs when searcing for products with comma in the product / group selector"  has now been fixed in version 8.8.1.4

You are able to find this build in the download section:

http://developer.dynamicweb-cms.com/downloads/dynamicweb-8.aspx

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum