diff --git a/Apollo/api/application/models/Batch_model.php b/Apollo/api/application/models/Batch_model.php index 62d49ffa..9d4121d3 100755 --- a/Apollo/api/application/models/Batch_model.php +++ b/Apollo/api/application/models/Batch_model.php @@ -117,7 +117,6 @@ class Batch_model extends CI_Model { * */ public function updateDefaultBatch($details=null){ - $setDefaultBatch['IsDefault']=false; $setDefaultBatch['UpdatedBy'] = $details['UpdatedBy']; $setDefaultBatch['UpdatedOn'] = $details['UpdatedOn']; @@ -128,6 +127,7 @@ class Batch_model extends CI_Model { if($upateStatus){ $this->db->where('BatchCode',$details['BatchCode']); $this->db->where('UniversityID',$details['UniversityID']); + $this->db->where('BranchCode',$details['BranchCode']); $upateAfterStatus=$this->db->update(BATCH, $details); $result['batchStatus'] = true; $result['message'] = "Successfully Batch details updated";