Skip to content

Override editUIButtonHandler to set showImport=false#699

Merged
labkey-martyp merged 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_nirc_disable_show_import
May 18, 2026
Merged

Override editUIButtonHandler to set showImport=false#699
labkey-martyp merged 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_nirc_disable_show_import

Conversation

@labkey-martyp
Copy link
Copy Markdown
Contributor

@labkey-martyp labkey-martyp commented May 18, 2026

Rationale

The base EHR.Utils.editUIButtonHandler passes showImport: true to
/ehr/updateQuery, which surfaces a bulk-import affordance on the edit
view. That path lets users insert/update records without going through
the EHR data-entry forms and without an admin permission gate. This PR
buttons up that path in the NIRC deployment.

Changes

  • Override EHR.Utils.editUIButtonHandler in
    nirc_ehr/resources/web/nirc_ehr/nircOverrides.js to pass
    showImport: false while delegating to the base
    EHR.Utils.editUIButtonCore. The override piggybacks on NIRC's
    existing nircOverrides.js, already registered as an EHR client
    dependency in NIRC_EHRModule.java. No changes to the base ehr
    module.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@labkey-martyp labkey-martyp merged commit a00c531 into release26.3-SNAPSHOT May 18, 2026
6 of 7 checks passed
@labkey-martyp labkey-martyp deleted the 26.3_fb_nirc_disable_show_import branch May 18, 2026 16: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