fix: correct trial location preselection after city-only values

- options now use city values (saopaulo) instead of full hostnames
- preselect logic extracts city from bestServer.host before matching
This commit is contained in:
ODOO4projects Web Developer committed 2026-10-06 22:48:35 +00:00
1 parent 3d1473a2d5
commit 06ed942f8b
1 file changed
+2 -1
+2 -1
View File
@@ -530,8 +530,9 @@ var si = 0,
if (bestServer) { if (bestServer) {
[trialLoc, pricingLoc].forEach(function(el) { [trialLoc, pricingLoc].forEach(function(el) {
if (el) { if (el) {
var cityVal = bestServer.host.replace('api.', '').replace('.odoo4projects.com', '');
for (var i = 0; i < el.options.length; i++) { for (var i = 0; i < el.options.length; i++) {
if (el.options[i].value === bestServer.host) { if (el.options[i].value === cityVal) {
el.selectedIndex = i; el.selectedIndex = i;
break; break;
} }