Ivan1
6 January 2022 20:08
#1
Hi,
every time i use save Beam in code
$ bean-> save ()
I have no more than 2 emails left.
For example, there were 4 emails
$ bean= BeanFactory :: getBean ('my_module', 'guid');
$ bean-> save ();
now only 2 emails
Why do they disappear and how to fix it?
Hi @Ivan1 ,
Thank you for the feedback. Does it only happens when saving some modules?
I think this is related with a known issue (there is already a fix for it).
Please have a look at the following MR. The fix is very simple, you could try to apply it and see if it fixes the problem.
salesagility:hotfix
← clemente-raposo:fix/7842-avoid-overriding-email-addresses
opened 05:43PM - 07 Dec 21 UTC
## Description
- Fix: https://github.com/salesagility/SuiteCRM/issues/7842
-… Fixes issue in workflows, where email addresses where being removed.
-- this happened if record had more than 2 email addresses
- - Revert 41ee520
## Motivation and Context
- Fixes issue https://github.com/salesagility/SuiteCRM/issues/7842
## How To Test This
- See `Steps to reproduce` in https://github.com/salesagility/SuiteCRM/issues/7842
- Also re-test https://github.com/salesagility/SuiteCRM/issues/5197
## Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
### Final checklist
- [x] My code follows the code style of this project found [here](https://docs.suitecrm.com/community/contributing-code/coding-standards/).
- [ ] My change requires a change to the documentation.
- [x] I have read the [**How to Contribute**](https://docs.suitecrm.com/community/contributing-code/) guidelines.
<!--- If it reports back that there are problems, you can log into the Travis system and check the log report for your pull request to see what the problem was. --->
Hope this helps