Email from Address on compose view may fail to load for new users #5211

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

Originally created by @JackBuchanan on GitHub (Jun 16, 2024).

Issue

If a new user/user that has not yet had their "signature_prepend" User preference set yet may not see their From Addresses load on compose view when using legacy email behaviour

[16-Jun-2024 14:40:42 UTC] PHP Fatal error: Uncaught TypeError: EmailsControllerActionGetFromFields::addOutboundEmailAccounts(): Argument #2 ($prependSignature) must be of type bool, null given, called in /var/www/crm/modules/Emails/EmailsControllerActionGetFromFields.php on line 105 and defined in /var/www/crm/modules/Emails/EmailsControllerActionGetFromFields.php:182
Stack trace:
#0 /var/www/crm/modules/Emails/EmailsControllerActionGetFromFields.php(105): EmailsControllerActionGetFromFields->addOutboundEmailAccounts()
#1 /var/www/crm/modules/Emails/EmailsController.php(467): EmailsControllerActionGetFromFields->handleActionGetFromFields()
#2 /var/www/crm/include/MVC/Controller/SugarController.php(522): EmailsController->action_getFromFields()
#3 /var/www/crm/include/MVC/Controller/SugarController.php(491): SugarController->do_action()
#4 /var/www/crm/include/MVC/Controller/SugarController.php(465): SugarController->handle_action()
#5 /var/www/crm/include/MVC/Controller/SugarController.php(361): SugarController->process()
#6 /var/www/crm/include/MVC/SugarApplication.php(101): SugarController->execute()
#7 /var/www/crm/index.php(52): SugarApplication->execute()
#8 {main}

Possible Fix

Set user preference signature_prepend on creation of user

Steps to Reproduce the Issue

1. Create user
2. Allow access to emails module
3. Configure emails to use legacy behaviour
4. Go to emails compose view 
5. See from addresses not load

Context

No response

Version

7.24.2

What browser are you currently using?

Chrome

Browser Version

No response

Environment Information

PHP 8.2

Operating System and Version

Ubuntu 22

Originally created by @JackBuchanan on GitHub (Jun 16, 2024). ### Issue If a new user/user that has not yet had their "signature_prepend" User preference set yet may not see their From Addresses load on compose view when using legacy email behaviour [16-Jun-2024 14:40:42 UTC] PHP Fatal error: Uncaught TypeError: EmailsControllerActionGetFromFields::addOutboundEmailAccounts(): Argument #2 ($prependSignature) must be of type bool, null given, called in /var/www/crm/modules/Emails/EmailsControllerActionGetFromFields.php on line 105 and defined in /var/www/crm/modules/Emails/EmailsControllerActionGetFromFields.php:182 Stack trace: #0 /var/www/crm/modules/Emails/EmailsControllerActionGetFromFields.php(105): EmailsControllerActionGetFromFields->addOutboundEmailAccounts() #1 /var/www/crm/modules/Emails/EmailsController.php(467): EmailsControllerActionGetFromFields->handleActionGetFromFields() #2 /var/www/crm/include/MVC/Controller/SugarController.php(522): EmailsController->action_getFromFields() #3 /var/www/crm/include/MVC/Controller/SugarController.php(491): SugarController->do_action() #4 /var/www/crm/include/MVC/Controller/SugarController.php(465): SugarController->handle_action() #5 /var/www/crm/include/MVC/Controller/SugarController.php(361): SugarController->process() #6 /var/www/crm/include/MVC/SugarApplication.php(101): SugarController->execute() #7 /var/www/crm/index.php(52): SugarApplication->execute() #8 {main} ### Possible Fix Set user preference signature_prepend on creation of user ### Steps to Reproduce the Issue ```bash 1. Create user 2. Allow access to emails module 3. Configure emails to use legacy behaviour 4. Go to emails compose view 5. See from addresses not load ``` ### Context _No response_ ### Version 7.24.2 ### What browser are you currently using? Chrome ### Browser Version _No response_ ### Environment Information PHP 8.2 ### Operating System and Version Ubuntu 22
deekerman 2026-02-20 16:31:27 -05:00
  • closed this issue
  • added the
    Type: Bug
    label
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#5211
No description provided.