Fix autocomplete

Fix autocomplete
This commit is contained in:
novgorodschi catalin
2026-08-05 14:14:10 +03:00
parent dcb9311f4c
commit 077708ef84
4 changed files with 86 additions and 13 deletions
+2 -2
View File
@@ -46,8 +46,8 @@ if ($x!== '' && $y!== '' && is_numeric($x) && is_numeric($y)) {
$getwref = (int)$database->getVilWref((int)$x, (int)$y);
$checkexist = $database->checkVilExist($getwref);
} elseif ($dname!== '') {
// Preferam satele jucatorului: numele NU sunt unice (vezi getVillageByName).
$getwref = (int) $database->getVillageByName($dname, true, (int) ($session->uid ?? 0));
// Accepta si formatul dat de autocomplete pentru nume ambigue: "Nume (x|y)".
$getwref = (int) $database->resolveVillageInput($dname, (int) ($session->uid ?? 0));
$checkexist = $database->checkVilExist($getwref);
}