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;
}
public function getCities($filter = []) {
$this->select('AreaGeoID, AreaName')->where('Parent IS NOT NULL', null, false);
if (!empty($filter['AreaGeoID'])) {
$this->where('Parent', $filter['AreaGeoID']);
}
public function getCities() {
$this->select('AreaGeoID, AreaName')->where('Parent > 0');
return $this->findAll();
}