Skip to content

[dataquery] Apply visit filter to JSON-backed instruments - 29.0 release - #11350

Open
kongtiaowang wants to merge 1 commit into
aces:29.0-releasefrom
kongtiaowang:29.0-release
Open

kongtiaowang wants to merge 1 commit into
aces:29.0-releasefrom
kongtiaowang:29.0-release

Conversation

@kongtiaowang

Copy link
Copy Markdown
Contributor

bulkLoadInstanceData only applied the session/visit restriction in the table-backed branch, so JSON-stored instruments (jsondata{@}true, used by instrument_manager uploads and REDCap imports) silently ignored $v, and DQT filters leaked across visits.

Build the condition once, with bound parameters instead of $db->quote, and add it to both branches. Also qualify the DDE exclusion with the flag table in the JSON branch, where the t alias does not exist and the query would otherwise fail.

@github-actions github-actions Bot added the Language: PHP PR or issue that update PHP code label Nov 23, 2026
@kongtiaowang kongtiaowang changed the title 29.0 release [dataquery] Apply visit filter to JSON-backed instruments - 29.0 release Nov 23, 2026
bulkLoadInstanceData only applied the session/visit restriction in the
table-backed branch, so JSON-stored instruments (jsondata{@}true, used by
instrument_manager uploads and REDCap imports) silently ignored $v, and
DQT filters leaked across visits.

Build the condition once, with bound parameters instead of $db->quote,
and add it to both branches. Also qualify the DDE exclusion with the
flag table in the JSON branch, where the t alias does not exist and the
query would otherwise fail.
@kongtiaowang kongtiaowang added the 29.0.0 - Bugs Issues found during the release testing for 29.0.0 label Nov 23, 2026

This branch has not been deployed

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

Labels

29.0.0 - Bugs Issues found during the release testing for 29.0.0 Language: PHP PR or issue that update PHP code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant