From bbc97e7271813caf35d860cc6334c4a2f14c6f74 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 24 Apr 2018 18:21:28 +0530 Subject: [PATCH] student view changes --- Apollo/api/application/controllers/StudentView_Controller.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Apollo/api/application/controllers/StudentView_Controller.php b/Apollo/api/application/controllers/StudentView_Controller.php index 0f995206..7eeb63bc 100755 --- a/Apollo/api/application/controllers/StudentView_Controller.php +++ b/Apollo/api/application/controllers/StudentView_Controller.php @@ -45,8 +45,10 @@ class StudentView_Controller extends REST_Controller { $requestedBy = $this->post('requestedBy'); $requestedFrom = $this->post('requestedFrom'); + $requestedBranch = $this->post('branchCode'); - $studentListDetails = $this->studentview_model->getStudentInfo($requestedBy,$requestedFrom);// Check if the employee exist + + $studentListDetails = $this->studentview_model->getStudentInfo($requestedBy,$requestedFrom,$requestedBranch);// Check if the employee exist if ($studentListDetails) { $studentListDetails['status'] = REST_Controller::HTTP_OK; // Set the response and exit