Dear SuiteCRM Support,
I am experiencing an issue with the ListViewDataEmails
class in the getListViewData
method. Specifically, I am retrieving an incorrect folder_id
from $_REQUEST
. The folder_id
is pointing to account Y’s inbox instead of the default account (account X).
In the loadMailboxFolder
method within the Folder
class, the folder ID is first attempted to be retrieved from $_REQUEST['folders_id']
. If it’s not found, it falls back on the session variable $_SESSION['CURRENT_IMAP_MAILBOX_ID']
or the default inbound email ID set for the current user using $current_user->getPreference('defaultIEAccount', 'Emails')
.
Until recently, everything was working as expected, but now I am consistently retrieving the incorrect folder ID (account Y’s inbox) even though the default should be account X’s inbox. This is preventing me from changing email inboxes, as I have around 50 inboxes configured, but I can only switch to one inbox (account Y’s) and keep getting the same folder ID. I am unable to switch to any of the other inboxes.
Could you please help me identify what could have caused this issue and how I can resolve it?