Opened 4 years ago
Last modified 4 years ago
#2613 addressed defect
Order requstor could get wrong country value
| Reported by: | dbmulg | Owned by: | dbmulg |
|---|---|---|---|
| Priority: | medium | Milestone: | Server 2.3.3 |
| Component: | Public Website 2 | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
Reported from Czech Republic's Martin Bilek: "error when sending the email with the order. Users with country_code = "SVK" found two unrelated records in the dbo.code_value table". He also provided the fix for the bug.
The reason is that when getting country name data from the database for the requestor, we didn't specify the code value need to be only from the GEOGRAPHY_COUNTRY_CODE group. In this case, some duplicate value is picked to be used.
For example, if one requestor is from Georgia (country code GEO), since we have other code with the same value (PHTHOLOGY_TEST, IMPROVMENT_LEVEL), the country name would could show as 'Genetically Engineered'.
Change History (2)
comment:1 by , 4 years ago
| Status: | assigned → addressed |
|---|
comment:2 by , 4 years ago
| Milestone: | → Server 2.3.3 |
|---|

changed Requestor.cs to add where clause cv.group_name = 'GEOGRAPHY_COUNTRY_CODE'