From f087b1040252365aa07b09ec938e888890870eda Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Fri, 20 Apr 2018 13:09:12 +0530 Subject: [PATCH] session master changes done --- .../api/application/controllers/SessionMater_Controller.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Apollo/api/application/controllers/SessionMater_Controller.php b/Apollo/api/application/controllers/SessionMater_Controller.php index 5fd2eabb..b54e3493 100755 --- a/Apollo/api/application/controllers/SessionMater_Controller.php +++ b/Apollo/api/application/controllers/SessionMater_Controller.php @@ -35,6 +35,7 @@ class SessionMater_Controller extends REST_Controller { $details['SessionDate'] = $this->post('sessionDate'); $details['CreatedBy'] = $this->post('createdBy'); $details['IsActive'] = $this->post('status'); + $details['BranchCode'] = $this->post('branchCode'); $details['CreatedOn'] = $now->format('Y-m-d H:i:s'); $university['UniversityID'] = $this->post('universityName'); @@ -63,7 +64,8 @@ class SessionMater_Controller extends REST_Controller { public function getSessionMaterDetails_post() { $requestedBy = $this->post('requestedBy'); - $getSession = $this->sessionM_model->getSession($requestedBy); + $branchCode = $this->post('branchCode'); + $getSession = $this->sessionM_model->getSession($requestedBy,$branchCode); if ($getSession) { $getSession['status'] = REST_Controller::HTTP_OK; @@ -96,6 +98,7 @@ class SessionMater_Controller extends REST_Controller { $universityDetails['University'] = $this->post('university'); $details['UpdatedBy'] = $this->post('updatedBy'); $details['UpdatedOn'] = $now->format("Y-m-d H:i:s"); + $details['BranchCode'] = $this->post('branchCode'); $updateDetails = $this->sessionM_model->updateSession($details,$universityDetails);// Check if the users data store contains users (in case the database result returns NULL) if ($updateDetails)