DESKTOP-9JTA2JJ\HP 5 lat temu
rodzic
commit
ed1bb23346
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      api/application/controllers/Home.php

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

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