ezon
28 January 2023 18:47
#1
Hi, I have separate instances of SuiteCRM both experiencing the same issue after upgrading to version 7.13.
I need to use port 7993 instead of 993 for my particular setup. It was configured and working properly under 7.12. After upgrading to 7.13 the port get changed from 7993 to 7,993 (a coma is added).
This has broken my incoming email. Please see attached screenshots. As you can see by the screenshots the
Connection Test is successful before I save the settings (using correct port 7993). However as you can see on the 2nd screenshot, after I hit save the port is changed to 7,993 and the connection fails.
Any idea what is going on here?
hed images
John
31 January 2023 16:32
#2
Hey!
Thank you for raising this
I’ve given this a quick test locally, and it does appear to be an issue with the new Email Module.
It looks as though the field is set as an “int” in the Vardefs, so will be trying to add the Thousands seperator:
I haven’t tried this myself, so I can’t guarantee any success
but you could perhaps try changing the field type set in the vardef above.
(or creating a new one in the /custom/ directory, to be upgrade safe)
and seeing if this resolves your issue?
Either way, would you be able to raise this on our Github Repo as a bug?:
Thanks!
ezon
1 February 2023 11:06
#3
Hi Thanks for your help.
I changed the type from int to string and this solved my problem. I don’t know code so if this is not the appropriate type, please let me know.
Thanks again for your help, this was driving me nuts.
I’ll create a bug report on GitHub.
John
1 February 2023 12:31
#4
Great!
I’m glad that helps!
Thanks for raising this.
Here’s the link, for anyone who may come across this thread in the future:
opened 11:18AM - 01 Feb 23 UTC
<!--- Please be aware that as of the 31st January 2022 we no longer support 7.10… .x.
New issues referring to 7.10.x will only be valid if applicable to 7.12.x and above.
If your issue is still applicable in 7.12.x, please create the issue following the template below -->
#### Issue
adding a port greater than 999 to the Inbound Email Configuration window will cause system to add thousands separator (comma) and break Inbound Email. For example adding port 7993 will be saved as 7,993.
#### Expected Behavior
No Comma should be added.
#### Actual Behavior
system adds thousands separator (comma)
#### Possible Fix
changing "type" from "int" to "string" in modules>>>>InboundEmail>>>vardefs.php seems to work for me.
#### Steps to Reproduce
1. Change port on Inbound Email configuration to any port greater than 999
2. save
3.
4.
#### Context
#### Your Environment
* SuiteCRM Version used:
7.13.1
* Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)):
* Environment name and version (e.g. MySQL, PHP 7):
PHP7.4
* Operating System and version (e.g Ubuntu 16.04):
In regards to the type
I think your best bet would likely be either:
'type' => 'text'
or
'type' => 'varchar'
As these are the two types that SuiteCRM typically uses for text-based fields.
ezon
11 February 2023 17:55
#5
Thank you, I appreciate this.