Commit bdac5164 by Jansa Jose

Merge branch 'jansa'

parents f3fc88a4 3d671765
......@@ -266,9 +266,7 @@ public function editProfile()
$template['page'] = "patient_editprofile";
$template['page_title'] = "Edit Profile";
$template['data'] = "Patient page";
$patient_data = $this->Patient_model->get_single_patient($userdata['id']);
$patient_data['pt_gender'] = decrypt_data($patient_data['pt_gender']);
//unset($patient_data['pt_gender']);
$patient_data = $this->Patient_model->get_single_patient($userdata['id']); //unset($patient_data['pt_gender']);
$template['patient_data'] = $patient_data;
$this->load->view('template/template', $template);
}
......
......@@ -26,7 +26,9 @@ public function get_single_patient($id)
tbl_registration.profile_photo as pt_pic,
tbl_registration.gender as pt_gender,
case when tbl_registration.gender = '0' then 'MALE' when tbl_registration.gender = '1'
then 'FEMALE' else 'OTHERS' end as pt_gender,
tbl_registration.email as pt_email,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment