fix getcities showing province

This commit is contained in:
mahdahar 2025-12-02 13:14:23 +07:00
parent 9dfcc7c0eb
commit 8767b823ca

View File

@ -29,13 +29,8 @@ class AreaGeoModel extends BaseModel {
return $rows; return $rows;
} }
public function getCities($filter = []) { public function getCities() {
$this->select('AreaGeoID, AreaName')->where('Parent IS NOT NULL', null, false); $this->select('AreaGeoID, AreaName')->where('Parent > 0');
if (!empty($filter['AreaGeoID'])) {
$this->where('Parent', $filter['AreaGeoID']);
}
return $this->findAll(); return $this->findAll();
} }