Commit cc12f4cb by Jansa Jose

dc

parent fd75db61
...@@ -509,9 +509,9 @@ class Organizer_model extends CI_Model { ...@@ -509,9 +509,9 @@ class Organizer_model extends CI_Model {
$err = 0; $err = 0;
$postData['seat_pricing'] = $postData['custom_seat_layout'] = ''; $postData['seat_pricing'] = $postData['custom_seat_layout'] = '';
if(isset($postData['layout_type']) && $postData['layout_type'] == 1){ if(isset($postData['layout_type'],$postData['fare_type']) && $postData['layout_type'] == 1 && $postData['fare_type'] == 2){
$postData['custom_seat_layout'] = $postData['layout']; $postData['custom_seat_layout'] = $postData['layout'];
} else { } else if($postData['layout_type'] == 2){
$postData['seat_pricing'] = $postData['layout']; $postData['seat_pricing'] = $postData['layout'];
} }
$eventData = array('venue_id'=>$postData['venue_id'], $eventData = array('venue_id'=>$postData['venue_id'],
......
...@@ -274,12 +274,6 @@ class Validation_organizer_model extends CI_Model { ...@@ -274,12 +274,6 @@ class Validation_organizer_model extends CI_Model {
'message' => 'Tag is null or empty' 'message' => 'Tag is null or empty'
) )
), ),
'layout' => array(
'required' => array(
'code' => 'ER18',
'message' => 'Layout is null or empty'
)
),
), ),
'getLanguages'=>array(), 'getLanguages'=>array(),
'getCategories'=>array(), 'getCategories'=>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