Location can use CityID from another tenant

Description

None

Environment

None

Attachments

1
  • 05 Mar 2018, 04:25 PM

Activity

Show:

Nicolas Micoud March 5, 2018 at 4:26 PM

Hi,

I just notice that several records from C_Location are using a C_City_ID created by another tenant (I'm in a Saas environnment).
Looking in code, i see the C_City_ID column is searched only on the country, the region and the name (see MLocation.beforeSave).

Attached patch should resolved the issue... but that may be considered as a feature (ability to share cities).
So perhaps a SysConfig key should be added (LOCATION_SHARE_CITIES_BETWEEN_TENANTS) ?

WDYT ?

Regards,

Nicolas

Fixed

Details

Assignee

Reporter

Priority

Created March 5, 2018 at 4:24 PM
Updated May 1, 2018 at 1:46 PM
Resolved March 5, 2018 at 8:23 PM