Developer forum

Forum » Development » Assortments is overwritten

Assortments is overwritten

Anders Ebdrup
Reply

Hi DW,

 

I have a critical issue; my assortments is deleted after import.

 

This section of code checks if a user already is assigned to an assortment

                                    if (ExistingAssortmentPermissions.Select("AssortmentPermissionAssortmentID='" + assortmentID + "' AND AssortmentPermissionAccessUserID=" + userID).Length == 0)
                                    {
                                        DataRow relation = TableToWrite.NewRow();
                                        relation["AssortmentPermissionAssortmentID"] = assortmentID;
                                        relation["AssortmentPermissionAccessUserID"] = userID;
                                        TableToWrite.Rows.Add(relation);
                                    }

 

And only adds to the temporary table if not exist, with that result that all missing rows in the temporary table is removed from the primary table after import...

 

Please help with a hotfix for 8.6.1.

 

Best regards, Anders


Replies

 
Jonas Krarup Dam
Reply

Hi,

Sounds like a bug.

We will look into this, and get back to you.

Regards, Jonas

 
Jonas Krarup Dam
Reply

We have confirmed the problem and fixed it for the next 8.6.1 hotfix.

This will be released soon (tomorrow or monday)

Regards, Jonas

 

 
Kristian Kirkholt
Reply

Hi Anders

The problem TFS#18149 has now been fixed in version 8.6.1.19

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