Commit ea87e937 by Jansa Jose

text change while delete

parent f1634599
...@@ -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