|
@@ -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();
|
|
|
|