Assign To email address not saving correctly on User profile page

When adding an email address for “reply to”, the email address is saved correctly but the “reply to” option value is not saved in the database.

Hi techeccentric,

Thanks for highlighting this issue.

Thanks,

Will.

Make the following change in the file \include\SugarEmailAddress\SugarEmailAddress.php
This is at line 440 in my installation.

Original


                 if($fromRequest && empty($replyTo)) {
                    if(isset($_REQUEST[$eId .'emailAddressReplyToFlag'])) {
                       $replyToField = $_REQUEST[$eId .'emailAddressReplyToFlag'];
                    } else if(isset($_REQUEST[$module . 'emailAddressReplyToFlag'])) {
                       $replyToField = $_REQUEST[$module . 'emailAddressReplyToFlag'];
                    }
                }

Fixed


                if($fromRequest) {
                    if(isset($_REQUEST[$eId .'emailAddressReplyToFlag'])) {
                       $replyToField = $_REQUEST[$eId .'emailAddressReplyToFlag'];
                    } else if(isset($_REQUEST[$module . 'emailAddressReplyToFlag'])) {
                       $replyToField = $_REQUEST[$module . 'emailAddressReplyToFlag'];
                    }
                }

Note that the change is just the first line. I have shown extra code to make it easier to work out where the change should be in the file.

Cheers

Bruce