diff --git a/Apollo/api/application/controllers/Branch_Controller.php b/Apollo/api/application/controllers/Branch_Controller.php index 60c6758f..7fab735b 100755 --- a/Apollo/api/application/controllers/Branch_Controller.php +++ b/Apollo/api/application/controllers/Branch_Controller.php @@ -59,7 +59,7 @@ class Branch_Controller extends REST_Controller { $details['Address'] = $this->post('address'); $details['EmailID'] = $this->post('email'); $details['CreatedBy'] = $this->post('createdBy'); - $details['IsActive'] = $this->post('status') == true ? 1 : 0; + $details['IsActive'] = $this->post('status'); $imageStat = $this->post('imageStatus'); @@ -125,7 +125,7 @@ class Branch_Controller extends REST_Controller { $details['LandlineNumber'] = $this->post('landLine'); $details['Address'] = $this->post('address'); $details['EmailID'] = $this->post('email'); - $details['IsActive'] = $this->post('status') == true ? 1 : 0; + $details['IsActive'] = $this->post('status'); $details['UpdatedBy'] = $this->post('createdBy'); $date = date('Y-m-d H:i:s'); $details['UpdatedOn'] = $date;