U4-8059 - Commas should be HTML encoded for prevalue-based datatypes

Created by Barry Fogarty 22 Feb 2016, 19:54:01 Updated by Barry Fogarty 22 Feb 2016, 20:19:13

Relates to: U4-4741

Currently it is difficult to deal with commas in prevalues within multi-select datatypes (checkbox lists, dropdown list multiple etc). As the commas are not HTML encoded in the XML cache, splitting the raw CSV string value on comma results in an incorrect collection. HTML encoding the comma (,) or storing the value as JSON as per the related issue should solve this.

Comments

Sebastiaan Janssen 22 Feb 2016, 20:06:34

splitting the raw CSV string value on comma results in an incorrect collection

How's that?

FYI If we're going to fix this, we'll probably not be able to fix this until v8 as people are splitting on commas all over the place, so suddenly changing it to a html encoded comma is going to break many sites.


Barry Fogarty 22 Feb 2016, 20:19:13

@sebastiaan say I have a prevalue of "Mortgages, Pensions and Investments" in a "Categories" (checkboxlist-based) datatype. The prevalue is split in 2 parts when trying to return a collection of categories for the content item.


Priority: Minor

Type: Bug

State: Submitted

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: