Attachments Duplicating in Each Interaction: Resolution via Array Clearing

Created on 4 December 2023, 10 months ago

Problem/Motivation

The "Content Moderation Notification" module is exhibiting unexpected behaviour when attaching multiple copies of files to notification emails, resulting in duplication of attachments.

Steps to reproduce

  1. Go to the moderated content edit page.
  2. Perform an edit to the content.
  3. Save changes.
  4. Check the notification emails sent; note duplication of attachments.

Proposed resolution

The proposed solution is to add a cleanup of the attachment array before adding new attachments during each loop iteration, thus avoiding unwanted duplication.

Remaining tasks

  • Implement attachment array cleanup in module code.
  • Test the proposed solution to ensure that attachment duplication has been resolved.
  • Document changes made and update documentation if necessary.

User interface changes

No user interface changes are expected.

API changes

No changes to the API are expected.

Data model changes

No changes to the data model are expected.

🐛 Bug report
Status

Active

Version

3.6

Component

Code

Created by

🇧🇷Brazil brandonlira

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024