Does not display the error message when importing user that it reports to itself #5234

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

Originally created by @SinergiaCRM on GitHub (Aug 5, 2024).

Issue

When saving a user, the CRM validates that a loop is not generated with the reporters ("Reports to" field) so that a user cannot report to himself or any of his managers can report to him.

This validation is implemented for the process of saving/updating a user from the user interface but causes an alert with a label that does not exist in the process of updating users through an import.

No import if reports to himself

Possible Fix

No response

Steps to Reproduce the Issue

1. Create a normal user who reports to himself.
2. Check that when saving an error is displayed because he cannot report to himself
3. Export the user and in the downloaded document change the name of the user and the ID of the user to whom he reports ("Reports to" column), where we will indicate the ID of the user himself
4. Run the Import and Update process and check that, although no error message is displayed, the user is not updated.

(Optional)
5. Create another user who reports to the first
6. Export both users and modify the first user so that it reports to this second user.
7. Run the Import and Update process and check that, although no error message is displayed, the users are not updated

+Optional
8. Extend the chain of reporters and perform the checks.

Context

No response

Version

7.14.3

What browser are you currently using?

Firefox

Browser Version

128.0.3 (64-bit)

Environment Information

MySQL, PHP Version 7.4.33

Operating System and Version

Ubuntu 22.04.4 LTS

Originally created by @SinergiaCRM on GitHub (Aug 5, 2024). ### Issue When saving a user, the CRM validates that a loop is not generated with the reporters ("Reports to" field) so that a user cannot report to himself or any of his managers can report to him. This validation is implemented for the process of saving/updating a user from the user interface but causes an alert with a label that does not exist in the process of updating users through an import. ![No import if reports to himself](https://github.com/user-attachments/assets/43a5d2b1-5e4e-4de0-b42b-833694c3f0c9) ### Possible Fix _No response_ ### Steps to Reproduce the Issue ```bash 1. Create a normal user who reports to himself. 2. Check that when saving an error is displayed because he cannot report to himself 3. Export the user and in the downloaded document change the name of the user and the ID of the user to whom he reports ("Reports to" column), where we will indicate the ID of the user himself 4. Run the Import and Update process and check that, although no error message is displayed, the user is not updated. (Optional) 5. Create another user who reports to the first 6. Export both users and modify the first user so that it reports to this second user. 7. Run the Import and Update process and check that, although no error message is displayed, the users are not updated +Optional 8. Extend the chain of reporters and perform the checks. ``` ### Context _No response_ ### Version 7.14.3 ### What browser are you currently using? Firefox ### Browser Version 128.0.3 (64-bit) ### Environment Information MySQL, PHP Version 7.4.33 ### Operating System and Version Ubuntu 22.04.4 LTS
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#5234
No description provided.