fix(areageo): use province_id parameter instead of Parent in getCities

This commit is contained in:
mahdahar 2026-02-11 18:19:04 +07:00
parent 4b8d31f3a1
commit 9769e1dfea

View File

@ -40,7 +40,7 @@ class AreaGeoController extends BaseController {
}
public function getCities() {
$filter = [ 'Parent' => $this->request->getVar('Parent') ?? null ];
$filter = [ 'Parent' => $this->request->getVar('province_id') ?? null ];
$rows = $this->model->getCities($filter);
$transformed = array_map(function($row) {
return ['value' => $row['AreaGeoID'], 'label' => $row['AreaName']];