From 06ed942f8b9928df0f51b15ef8cc38cc7fcecbf7 Mon Sep 17 00:00:00 2001 From: ODOO4projects Web Developer Date: Tue, 6 Oct 2026 22:48:35 +0000 Subject: [PATCH] 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 --- script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 078fb35..8230588 100644 --- a/script.js +++ b/script.js @@ -530,8 +530,9 @@ var si = 0, if (bestServer) { [trialLoc, pricingLoc].forEach(function(el) { if (el) { + var cityVal = bestServer.host.replace('api.', '').replace('.odoo4projects.com', ''); 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; break; }