From d20823d6d299ee608442cfc7dc2847963f4cee2d Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 13 Feb 2018 12:20:07 +0530 Subject: [PATCH] course details changes done --- .../api/application/controllers/SessionMater_Controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Apollo/api/application/controllers/SessionMater_Controller.php b/Apollo/api/application/controllers/SessionMater_Controller.php index b8f00721..6affed98 100644 --- a/Apollo/api/application/controllers/SessionMater_Controller.php +++ b/Apollo/api/application/controllers/SessionMater_Controller.php @@ -32,12 +32,12 @@ class SessionMater_Controller extends REST_Controller { $now = new DateTime(); $now->setTimezone(new DateTimezone('Asia/Kolkata')); $details['SessionName'] = $this->post('sessionName'); - $details['UniversityID'] = $this->post('universityName'); $details['CreatedBy'] = $this->post('createdBy'); $details['IsActive'] = $this->post('status'); $details['CreatedOn'] = $now->format('Y-m-d H:i:s'); + $university['UniversityID'] = $this->post('universityName'); - $sessionDetails = $this->sessionM_model->addSession($details);// Check if the users data store contains users (in case the database result returns NULL) + $sessionDetails = $this->sessionM_model->addSession($details,$university);// Check if the users data store contains users (in case the database result returns NULL) if ($sessionDetails) { $sessionDetails['status'] = REST_Controller::HTTP_OK;