Closed pkalita-lbl closed 1 year ago
So it looks like we should always strip space around all multi-valued entries? Does it make sense to silently clean (normalize) multivalued fields on load, or just during validation?
I think using the same logic on loading and validation is important. See PR for my suggested fix.
Steps to reproduce:
;
, for example "Eye; Intestine".;
(no space), for example "Eye;Intestine"This causes issues because multivalued values don't survive a cycle of enter data -> validate -> export as data objects -> load data objects.
From a technical point of view there are a number of places where we do a
split
orjoin
on multivalued values, but they often differ just a bit in how they treat whitespace. I'll put together a PR to introduce utility methods to normalize parsing and formatting multivalued values.