Skip to content

GitHub Issue 829: Sample type with lookup to list with text primary key where the value contains a comma doesn't map to lookup#1946

Open
XingY wants to merge 4 commits intodevelopfrom
fb_lookupComma
Open

GitHub Issue 829: Sample type with lookup to list with text primary key where the value contains a comma doesn't map to lookup#1946
XingY wants to merge 4 commits intodevelopfrom
fb_lookupComma

Conversation

@XingY
Copy link
Contributor

@XingY XingY commented Feb 27, 2026

Rationale

GitHub Issue 829: Sample type with lookup to list with text primary key where the value contains a comma doesn't map to lookup

Related Pull Requests

Changes

  • Only do quoteValueWithDelimiters on values if the lookup column support multiple values

@XingY XingY requested a review from labkey-susanh February 27, 2026 19:36
Copy link
Contributor

@labkey-susanh labkey-susanh left a comment

Choose a reason for hiding this comment

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

I have not done any testing, but changes make sense to me.

col.name,
values.size === 1 ? quoteValueWithDelimiters(values.first()?.display, ',') : undefined
);
row = row.set(col.name, values.size === 1 ? values.first()?.display : undefined);
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: the ? after first() seems unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants