From 809fc79cac19e252e1e0d2235f677d6fc85287f5 Mon Sep 17 00:00:00 2001 From: dineshkumarkannan Date: Thu, 26 Apr 2018 13:46:30 +0530 Subject: [PATCH] student details changes:kdk --- Apollo/api/application/controllers/Student_Controller.php | 2 +- Apollo/api/application/models/Student_model.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Apollo/api/application/controllers/Student_Controller.php b/Apollo/api/application/controllers/Student_Controller.php index 66862fa3..fa7ee9e3 100755 --- a/Apollo/api/application/controllers/Student_Controller.php +++ b/Apollo/api/application/controllers/Student_Controller.php @@ -250,7 +250,7 @@ class Student_Controller extends REST_Controller { public function getListofStuPendingDocDetails_post() { $StudentID = $this->post('exceptId'); $localdata = $this->post('localData'); - $studentPendingDocDetails = $this->student_model->getStudent_PendingDoc_Details($StudentID); + $studentPendingDocDetails = $this->student_model->getStudent_PendingDoc_Details($StudentID, $localdata ); if ($studentPendingDocDetails) { $studentPendingDocDetails['status'] = REST_Controller::HTTP_OK; // Set the response and exit diff --git a/Apollo/api/application/models/Student_model.php b/Apollo/api/application/models/Student_model.php index ea272438..eccfcf2e 100755 --- a/Apollo/api/application/models/Student_model.php +++ b/Apollo/api/application/models/Student_model.php @@ -774,7 +774,8 @@ class Student_model extends CI_Model { } } - public function getStudent_PendingDoc_Details($stuID) { + public function getStudent_PendingDoc_Details($stuID, $localData) { + $localBranch = localData['localBranchID']; $this->db->select('*'); $this->db->order_by('CreatedOn', 'DESC'); $this->db->from(STUDENTDOCUMENTTRACKDETAILS);