Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Fix merging display table fields containing commas #875

Merged

Conversation

cpinter
Copy link
Member

@cpinter cpinter commented Aug 8, 2019

If a series description (or other field that is merged with mergeConcatenate) contained a comma, then it was concatenated even if it was the same. For example "first, second" was not found in the split fields because they were "first" and "second". Fixed by simply searching for the new value in the unsplit initial value.

There might be issues with this too, for example if if there are series descriptions like "first", "second", and also "first, second", but in that case seeing only "first, second" is acceptable.

If a series description (or other field that is merged with mergeConcatenate) contained a comma, then it was concatenated even if it was the same. For example "first, second" was not found in the split fields because they were "first" and "second". Fixed by simply searching for the new value in the unsplit initial value.

There might be issues with this too, for example if if there are series descriptions like "first", "second", and also "first, second", but in that case seeing only "first, second" is acceptable.
Copy link
Member

@lassoan lassoan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you!

@lassoan lassoan merged commit 337dd0d into commontk:master Aug 9, 2019
slicerbot pushed a commit to Slicer/SlicerGitSVNArchive that referenced this pull request Aug 13, 2019
jcfr pushed a commit to NA-MIC/svn.slicer.org-Slicer4 that referenced this pull request Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants