Skip to content

Record Formatter previews not scoped #5061

@grantfitzsimmons

Description

@grantfitzsimmons

Describe the bug
Records from other collections appear in the record formatter previews, but they should only show results scoped to the logged-in collection and permission level of the current user.

To Reproduce
Steps to reproduce the behavior:

  1. Log into the nbm_mnb_2024_06_28 database as spadmin and log into the "Fish Voucher Collection"
  2. Go to https://nbmmnb20240628-edge.test.specifysystems.org/specify/resources/app-resource/13/formatter/Preparation/49 (Preparation Table Format)
  3. See the preview
  4. Note that preparation types that do not exist within the current collection appear in the preview, indicating that the preview is not scoped to preparations only present in the current collection

Expected behavior
The preview should be scoped correctly (within the current collection)

Screenshots
image

Voucher Collection:
image

Amphibian and Reptile Collection:
image

Crash Report
Specify 7 System Information - 2024-07-01T17_12_55.805Z.txt

Seems to be happening since v7.9.4 (when preview was introduced)

Observed by: New Brunswick Museum

Metadata

Metadata

Assignees

No one assigned

    Labels

    1 - BugIncorrect behavior of the product2 - App ResourcesIssues that are related to app resources

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions