Skip to content

Batch editing an attachment record does not edit the record and instead duplicates it #8298

Description

@combs-a

Describe the bug
When batch editing attachments either through a related table's (i.e. Collection Object) or an Attachment table query, it instead creates a new record with the edited information in Batch Edit.

It does not appear to affect non-Attachment tables from a brief test with Collection Object, but we may want to do further testing to ensure that it is only the Attachment table.

There are no related errors, and would likely cause confusion due to the duplications of the attachment records in the Attachments tab. Additionally, Edit History does not contain information about fields on Create, so a lot of editing information would be quietly lost. The only real indicator is the New Cells being flagged by Batch Edit.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the record(s) you want to edit and note the Attachment ID for the attachment you want to edit.
  2. Create a query for batch editing, either through the Attachment table or a table with a relationship to Attachments (i.e. Collection Object).
  3. Save the query and then click Batch Edit.
  4. Edit the record(s) in some way, and then save and commit.
    • Note that when you save, it'll then appear as new cells.
  5. Open the edited Attachment record. You can do so by right-clicking an Attachment field in Batch Edit.
  6. Click on the Settings menu for the Attachment record and click Edit History.
  7. See that there has been no record of the edit made.

You can see further proof of this in the connecting table (i.e. Collection Object Attachment), as it will show that the ID of the attachment has been updated.

Expected behavior
The edit history should be recorded.

Screenshots
Here is a video of the Batch Edit taking place and the Edit History not being updated.

firefox_07-13_11-12.mp4

Here is the duplicated record shown in the Attachments tab:

Image

Crash Report

Please fill out the following information manually:

Additional context
Here's an additional video of editing the attachment through the forms and the edit history being updated, as expected. Editing attachments via forms does not duplicate the record.

firefox_07-13_11-16.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    1 - BugIncorrect behavior of the productpri:highMust be resolved before releasing

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions