Email attachment doesn't inherit assigned_user_id #5315

Open
opened 2026-02-20 16:59:32 -05:00 by deekerman · 0 comments
Owner

Originally created by @phil8900 on GitHub (Mar 27, 2025).

Issue

I use the Email compose window to write an Email with an attachment. This creates an Email record and a Note record.

The Email record is assigned to the current user, but the Note record is not assigned to any user.

Possible Fix

Adding the following line in Email.php:
$note->assigned_user_id = $this->assigned_user_id;

Steps to Reproduce the Issue

1. Create a Lead/Contact with an Email address
2. Click on the Email address to open the Email Compose window
3. Attach a file to the email and send it
4. Check the Email record in the subpanel and navigate to the attachments
5. See if the Note is assigned to a user

Context

No response

Version

7.13.3

What browser are you currently using?

Chrome

Browser Version

No response

Environment Information

MySQL 8.0.41, PHP 7.4

Operating System and Version

Ubuntu 22.04

Originally created by @phil8900 on GitHub (Mar 27, 2025). ### Issue I use the Email compose window to write an Email with an attachment. This creates an Email record and a Note record. The Email record is assigned to the current user, but the Note record is not assigned to any user. ### Possible Fix Adding the following line in Email.php: `$note->assigned_user_id = $this->assigned_user_id;` ### Steps to Reproduce the Issue ```bash 1. Create a Lead/Contact with an Email address 2. Click on the Email address to open the Email Compose window 3. Attach a file to the email and send it 4. Check the Email record in the subpanel and navigate to the attachments 5. See if the Note is assigned to a user ``` ### Context _No response_ ### Version 7.13.3 ### What browser are you currently using? Chrome ### Browser Version _No response_ ### Environment Information MySQL 8.0.41, PHP 7.4 ### Operating System and Version Ubuntu 22.04
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5315
No description provided.