Skip to content

GitHub Issue 1073: Updating a List MVTC field shows array in audit for values with quotes#7593

Merged
XingY merged 3 commits intodevelopfrom
fb_mvtcIssueAudit
Apr 18, 2026
Merged

GitHub Issue 1073: Updating a List MVTC field shows array in audit for values with quotes#7593
XingY merged 3 commits intodevelopfrom
fb_mvtcIssueAudit

Conversation

@XingY
Copy link
Copy Markdown
Contributor

@XingY XingY commented Apr 17, 2026

Rationale

List mvtc values appeared as raw PostgreSQL array syntax (e.g., {val1,val2}) in the audit log. This PR converts java.sql.Array and properly formats the value to use, instead of relying on toString.

Related Pull Requests

Changes

  • Modified AbstractAuditTypeProvider.encodeForDataMap to convert java.sql.Array to a MultiChoice.Array then formats it with PageFlowUtil.joinValuesToStringForExport
  • ListManager.formatAuditItem: skip toString and keep object


ColumnInfo col = ti.getColumn(FieldKey.fromParts(baseKey));
String value = Objects.toString(entry.getValue(), "");
Object value = entry.getValue();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This seems like a functional change. Before, if there wasn't a value, we would possibly show a change to the empty string in the audit log. From UI testing, this seems to be doing the right things, though, and I believe it's because the empty string was being treated as effectively null.

@labkey-susanh
Copy link
Copy Markdown
Contributor

Is there a test to cover this?

@XingY XingY merged commit 4569479 into develop Apr 18, 2026
8 of 11 checks passed
@XingY XingY deleted the fb_mvtcIssueAudit branch April 18, 2026 00:33
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