Commit 5db25219 by Tobin

live issues fix

parent 5b758e40
...@@ -33,7 +33,7 @@ class CMS extends CI_Controller { ...@@ -33,7 +33,7 @@ class CMS extends CI_Controller {
} }
public function changeCMSdata(){ public function changeCMSdata(){
$url = 'cms'; $url = 'CMS';
$flashMsg = array('message'=>'Something went wrong, please try again..!','class'=>'error'); $flashMsg = array('message'=>'Something went wrong, please try again..!','class'=>'error');
if(!isset($_POST) || empty($_POST)){ if(!isset($_POST) || empty($_POST)){
$this->session->set_flashdata('message',$flashMsg); $this->session->set_flashdata('message',$flashMsg);
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<option selected disabled>Choose a Region</option> <option selected disabled>Choose a Region</option>
<?php <?php
foreach ($regionData as $region) { foreach ($regionData as $region) {
$select = (isset($venue_data->region_id) && $region->region_id == $region->region_id)?'selected':''; $select = (isset($venue_data->region_id) && $venue_data->region_id == $region->id)?'selected':'';
echo '<option '.$select.' value="'.$region->id.'">'. echo '<option '.$select.' value="'.$region->id.'">'.
$region->name. $region->name.
'</option>'; '</option>';
......
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