Commit b46bb6d0 by Jansa Jose

J: changes in edit organization details

parent ff861cc3
......@@ -214,6 +214,8 @@ class Organizer_model extends CI_Model {
if(!empty($postData['event_id'])){
$insertEventDate = array();
if(isset($postData['show_type']) && !empty($postData['show_type'])){
$this->db->update('event_date_time',array('status'=>'0'),
array('status'=>'1','event_id'=>$postData['event_id']));
if($postData['show_type'] == 1){
$date = $postData['start_date'];
foreach (json_decode($postData['show_timing']) AS $time) {
......@@ -229,7 +231,6 @@ class Organizer_model extends CI_Model {
$cdate = strtotime($cdate . ' +1 day');
}
}
$this->db->update('event_date_time',array('status'=>'0'),array('event_id'=>$postData['event_id']));
$this->db->insert_batch('event_date_time',$insertEventDate);
}
$insertTag = array();
......
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