activity changes done
This commit is contained in:
parent
e10d31313f
commit
521cae5d4c
@ -169,6 +169,7 @@ class University_Controller extends REST_Controller {
|
||||
$details['CreatedBy'] = $this->post('createdBy');
|
||||
$details['CreatedOn'] = $now->format('Y-m-d H:i:s');
|
||||
$details['IsActive'] = $this->post('status');
|
||||
$details['BranchCode'] = $this->post('branchCode');
|
||||
$jsonData=$this->post('activityStatus');
|
||||
$activityDetails = $this->university_model->addActivity($details,$jsonData);// Check if the users data store contains users (in case the database result returns NULL)
|
||||
if ($activityDetails) {
|
||||
@ -189,7 +190,8 @@ class University_Controller extends REST_Controller {
|
||||
public function getActivityDetails_post()
|
||||
{
|
||||
$requestedBy = $this->post('requestedBy');
|
||||
$getActivity = $this->university_model->getActivity($requestedBy);
|
||||
$requestedBranch = $this->post('branchCode');
|
||||
$getActivity = $this->university_model->getActivity($requestedBy,$requestedBranch);
|
||||
if ($getActivity)
|
||||
{
|
||||
$getActivity['status'] = REST_Controller::HTTP_OK;
|
||||
@ -220,6 +222,7 @@ class University_Controller extends REST_Controller {
|
||||
$details['IsActive'] = $this->post('status');
|
||||
$details['UpdatedBy'] = $this->post('updatedBy');
|
||||
$details['UpdatedOn'] = $now->format('Y-m-d H:i:s');
|
||||
$details['BranchCode'] = $this->post('branchCode');
|
||||
$jsonData=$this->post('activityStatus');
|
||||
$activityDetails = $this->university_model->updateActivity($details,$jsonData);// Check if the users data store contains users (in case the database result returns NULL)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user