FI changes 1 : ps
This commit is contained in:
parent
7fa2c1e4bd
commit
80f4e960f3
@ -1221,6 +1221,16 @@ class Entity_Management_Controller extends REST_Controller {
|
||||
}
|
||||
$this->db->WHERE('isactive',1);
|
||||
$pd_types = $this->db->GET()->result_array();
|
||||
if(!empty($pd_types)){
|
||||
$field_investigation = array(array("field_investigation_id"=> 1,"field_investigation"=> "Office Visit (DI)"),array("field_investigation_id"=> 2,"field_investigation"=> "Office Visit (Sal)"),array("field_investigation_id"=> 3,"field_investigation"=> "Residence Visit"));
|
||||
for ($k = 0; $k < count($pd_types); $k++) {
|
||||
if($pd_types[$k]['pd_type_id'] == 4){
|
||||
$pd_types[$k]['field_investigation'] = $field_investigation;
|
||||
}else{
|
||||
$pd_types[$k]['field_investigation'] = array();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user