Developer forum

Forum » Swift » Some issues (I found 2 now) remaining with Json vs String in dw10

Some issues (I found 2 now) remaining with Json vs String in dw10

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi,

Happy to see the 1.25 release which fixes some issues related to dw10 changing certain strings to Json format. 

I have however found 2 locations where this is still a problem:

  • https://github.com/dynamicweb/Swift/blob/main/Swift/Files/Templates/Designs/Swift/Paragraph/Swift_ProductListListView.cshtml
    • Line 188: IEnumerable<string> selectedDisplayGroups = Model.Item.GetRawValueString("MainFeatures").Split(',').ToList();
  • https://github.com/dynamicweb/Swift/blob/main/Swift/Files/Templates/Designs/Swift/Components/EcommerceBadge.cshtml
    • line 12:  List<string> campaignBadgesValues = GetViewParameter("campaignBadgesValues") != null ? GetViewParameterString("campaignBadgesValues").Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList() : new List<string>();

Cheers,

Justin


Replies

 
Merethe Vrå Andersen Dynamicweb Employee
Merethe Vrå Andersen
Reply

Hi,

I have created a feature for the remaining fixes: 16960.

BR,

Merethe Vrå Andersen.

 

You must be logged in to post in the forum