updated : ps
This commit is contained in:
parent
49d8ea6d31
commit
0a17993fe6
@ -1121,10 +1121,10 @@ class Template_Management_Controller extends REST_Controller {
|
||||
}else if($status == "APPROVED" || $status == "COMPLETED"){
|
||||
//approve and completed status means just update the status only.
|
||||
$json_pk_id = $json_table[0]['id'];
|
||||
$data = array('json' => json_encode($records['json'],true),'is_form_status' => $status);
|
||||
$this->db->where('isactive',1);
|
||||
$this->db->where('id',$json_pk_id);
|
||||
$this->db->set('is_form_status',$status);
|
||||
$this->db->update(TEMPLATE_JSON_V2);
|
||||
$this->db->update(TEMPLATE_JSON_V2,$data);
|
||||
$msg = "Sucessfully Updated";
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user