Commit a03a61cb by Tobin

dc

parent 4e4aef7b
......@@ -1668,7 +1668,7 @@ class Organizer_model extends CI_Model {
public function editOrganizerVenueDetails($data){
$res = array('status'=>0,'message'=>'Ohh No!! Something Went South','code'=>'ER06');
try{
$data['layout'] = $data['layout_details'] = '';
if(isset($data['has_layout']) && $data['has_layout'] == 1){
if(isset($_FILES) && isset($_FILES['layout_image']) && !empty($_FILES['layout_image'])){
$config = set_upload_service("assets/uploads/services");
......@@ -1688,10 +1688,7 @@ class Organizer_model extends CI_Model {
'capacity'=>json_decode($data['seat_capacity'])[$index],
'weekend_price'=>json_decode($data['seat_price'])[$index]);
}
$data['layout_details'] = json_encode($seatLayoutDetails);
} else {
$data['layout'] = $data['layout_details'] = '';
}
$locData = getLocationLatLng($data['location']);
if(empty($locData)){
......
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