From 00c676381fa16e628a51529cf8284491b818a6ab Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 24 Apr 2018 13:13:40 +0530 Subject: [PATCH] batch master changes --- Apollo/api/application/models/Batch_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";