DESKTOP-9JTA2JJ\HP 5 gadi atpakaļ
vecāks
revīzija
0fddde02dd
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      api/application/controllers/Home.php

+ 2 - 2
api/application/controllers/Home.php

@@ -705,7 +705,7 @@ class Home extends Base_Controller {
         $where = array();
         $proId = intval($this->input->post('proId',true));
 
-        if (!empty($proId)) $where['G2.id'] = $proId;
+        if (!empty($proId)) $where['G2.pid'] = $proId;
         if ($role != SYSTEM_ADMIN) $where['P.company'] = $company;
         $join = array();
 
@@ -722,7 +722,7 @@ class Home extends Base_Controller {
         $where = array();
         $cityId = intval($this->input->post('cityId',true));
 
-        if (!empty($cityId)) $where['G1.id'] = $cityId;
+        if (!empty($cityId)) $where['G1.pid'] = $cityId;
         if ($role != SYSTEM_ADMIN) $where['P.company'] = $company;
         $join = array();