student details changes:kdk

This commit is contained in:
dineshkumarkannan 2018-04-26 13:46:30 +05:30
parent a7a3c03836
commit 809fc79cac
2 changed files with 3 additions and 2 deletions

View File

@ -250,7 +250,7 @@ class Student_Controller extends REST_Controller {
public function getListofStuPendingDocDetails_post() { public function getListofStuPendingDocDetails_post() {
$StudentID = $this->post('exceptId'); $StudentID = $this->post('exceptId');
$localdata = $this->post('localData'); $localdata = $this->post('localData');
$studentPendingDocDetails = $this->student_model->getStudent_PendingDoc_Details($StudentID); $studentPendingDocDetails = $this->student_model->getStudent_PendingDoc_Details($StudentID, $localdata );
if ($studentPendingDocDetails) { if ($studentPendingDocDetails) {
$studentPendingDocDetails['status'] = REST_Controller::HTTP_OK; $studentPendingDocDetails['status'] = REST_Controller::HTTP_OK;
// Set the response and exit // Set the response and exit

View File

@ -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->select('*');
$this->db->order_by('CreatedOn', 'DESC'); $this->db->order_by('CreatedOn', 'DESC');
$this->db->from(STUDENTDOCUMENTTRACKDETAILS); $this->db->from(STUDENTDOCUMENTTRACKDETAILS);