This commit is contained in:
sriramv 2023-01-18 08:41:24 +05:30
parent aed8cddad7
commit 7ebccf9477
2 changed files with 8 additions and 7 deletions

View File

@ -265,7 +265,13 @@ function getData($table,$id,$business_id)
$this->db->select();
$this->db->from($table);
if($business_id != NULL) {
$this->db->where('business_id', $business_id);
if($table == 'business')
{
$this->db->where('uid', $business_id);
}
else {
$this->db->where('business_id', $business_id);
}
}
$this->db->where('id', $id);
$query = $this->db->get();

View File

@ -57,12 +57,7 @@
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-1 col-sm-1 " for="last-name">Status <a style="color:red;">*</a> </label>
<div class="col-md-5 col-sm-5 ">
<input id="status" name="status" value="<?php echo $businessData->status; ?>" required="required" class="form-control" type="text" >
</div>
</div>
<br /> <div class="x_title"> </div> <br />