wzh 5 роки тому
батько
коміт
147816e55a
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      api/application/controllers/Company.php

+ 1 - 1
api/application/controllers/Company.php

@@ -68,7 +68,7 @@ class Company extends Base_Controller {
 		$id = intval($this->input->post('id',true));
 		if (empty($id)) exit(json_result('0007',$this->response['0007']));
 
-		$res = $this->Project_model->get_one(['companyId'=>$id],'id');
+		$res = $this->Project_model->get_one(['company'=>$id],'id');
 
 		if (!empty($res) && !empty($res['id'])) exit(json_result('',$this->response['']));