The answer to the original question is, YES I DO!!!
This was like a months worth of work to track down multiple problems throughout SuiteCRM that caused the general functionality to not work.
I’ve added all the PR’s and all the info from my notes about what is required here:
opened 03:23PM - 02 Jun 23 UTC
#### Issue
There are a bunch of issues surrounding group email accounts. I… 've proposed some fixes already. First, group email accounts do not get marked as "is_group" = 1 currently. I proposed a fix in 7.12 branch for this that should still be applicable in Core.
However, when group folders are correctly marked in "folders" in the database as is_group =1 they no longer appear on the list of folders in users and admin folder selection in user profile.
When they are NOT marked as "is_group" they go into the JSON array that makes the pick list as "userFolders" like this...
`"userFolders": [{
"id": "",
"name": "--None--",
"has_child": 0,
"is_group": 0,
"selected": false
}, {
"id": "5d269064-84eb-a6cd-bf75-6478c44c1bea",
"name": "INBOX (replypersonal)",
"has_child": "1",
"is_group": "0",
"is_dynamic": "1",
"folder_type": "inbound",
"created_by": "1",
"deleted": "0",................................`
When properly marked they go into the JSON like this:
`"groupFolders": [{
"id": "",
"name": "--None--",
"has_child": 0,
"is_group": 1,
"selected": false,
"origName": ""
}, {
"id": "e0e86af8-fac6-8f28-4c90-6478d52d1153",
"name": "INBOX (reply2)",
"has_child": "1",
"is_group": "1",
"is_dynamic": "1",
"folder_type": "inbound",
"created_by": "1",.......................`
Currently trying to track down exactly which JS is responsible for the list in:
\modules\Emails\javascript\ajax.js
AND
\modules\Emails\javascript\EmailUI.js
#### Expected Behavior
A list of both personal and accessible group accounts should appear in the list.
Once they appear in the list, when the list saves it will update the folders_subscriptions table in the database with the user ID and the folder ID to manage subscriptions.
#### Actual Behavior
Only a list of userFolders appear in the list.
#### Possible Fix
Modify the JS in settingsFolderRefresh: function (o) and probably another one I haven't found yet, to populate the list initially (which I haven't found yet).
#### Steps to Reproduce
1. Create a group email
2. Make sure it's marked as "is_group" = 1 in the inbound email table in the database
3.Make sure related folders are marked as "is_group"=1 in the folders table in the database
4. Go to a profile as admin (or user) and try and add the folder to subscriptions. It's not available.
#### Context
#### Your Environment
* SuiteCRM Version used: 7.13 (issue in 7.12 as well, I'm testing both).
*
* Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)):
* Environment name and version (e.g. MySQL, PHP 7):
* Operating System and version (e.g Ubuntu 16.04):
I’ve tested on two different installations and it works. I would love for someone else to give it a try and make sure there are no issues with my PR’s. I checked very carefully, but Github for me is a bit of a challenge. So hopefully I did everything mostly right.
This solution will only work in 7.13+ as 7.12 doesn’t have a relationship between security groups and inbound email accounts.
2 Likes