https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41151 --- Comment #51 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 197705 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197705&action=edit Bug 41151: (follow-up) Quote comma-bearing repeat values in strings_map The previous display fix on this bug left a latent issue: when a repeatable additional field held a value that itself contained a comma (e.g. "a,b,c"), the joined value_str was indistinguishable from three plain repeats. Any consumer that split on "," would mangle the data. Encode value_str with a CSV-style convention: the separator stays ", ", but any individual value containing "," or '"' is wrapped in double quotes with internal quotes doubled (RFC 4180-ish). Plain values pass through unchanged, so "red, blue, green" still round-trips as-is, while "a,b,c" / "b" / "c" now encodes as '"a,b,c", b, c' and is losslessly parsable. Test plan: prove t/db_dependent/Koha/Object/Mixin/AdditionalFields.t -- You are receiving this mail because: You are watching all bug changes.