Skip to content

Unable to find record linked to an attachment if an attachment was deleted in the same session #7600

@lexiclevenger

Description

@lexiclevenger

Describe the bug
If you delete an attachment or record from the attachment gallery, Specify is unable to open records linked to other attachments until you refresh the page.

To Reproduce
Steps to reproduce the behavior:

  1. Create 2 different records and add an attachment to each
  2. Click on Attachments in the navigation bar
  3. Click on one of the attachments you added
  4. Click on the linked record
  5. Delete the record and click Close
  6. Click on the other attachment you added
  7. Click on the linked record
  8. See message: "Unable to find a record that this attachment is related to."

Expected behavior
The linked record should appear.

Screenshots

Screen.Recording.2025-12-29.at.4.52.15.PM.mp4

Specify 7 System Information - 2025-12-29T22_54_30.030Z.txt

Please fill out the following information manually:

Metadata

Metadata

Assignees

No one assigned

    Labels

    2 - AttachmentsIssues that are related to attachments

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions