Commit 4b5e408e by Tobin

Merge branch 'master' into 'dev_production'

text change while delete See merge request !271
parents 002f3b4b ea87e937
...@@ -1638,7 +1638,9 @@ class Organizer_model extends CI_Model { ...@@ -1638,7 +1638,9 @@ class Organizer_model extends CI_Model {
$res = array('status'=>0,'message'=>'Ohh No!! Something Went South','code'=>'ER06'); $res = array('status'=>0,'message'=>'Ohh No!! Something Went South','code'=>'ER06');
try{ try{
$this->db->update('venue',array('status'=>$status),array('id'=>$data['venue_id'])); $this->db->update('venue',array('status'=>$status),array('id'=>$data['venue_id']));
$res = array('status'=>1,'message'=>($status == 0)?'Venue Deactivated Successfully':'Venue Activated Successfully'); $venStatus = ($status == 2)?'Deleted':'Deactivated';
$venStatus = ($status == 1)?'Activated':$venStatus;
$res = array('status'=>1,'message'=>'Venue '.$venStatus.' Successfully');
}catch(Exception $e){ }catch(Exception $e){
$res = array('status'=>0,'message'=>'Ohh No!! Something Went South','code'=>'ER06'); $res = array('status'=>0,'message'=>'Ohh No!! Something Went South','code'=>'ER06');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment