From 5f17dab463da4d2adfe1a4904196f9b9c2c5fed7 Mon Sep 17 00:00:00 2001 From: resicovenba Date: Mon, 11 Dec 2017 12:47:19 +0530 Subject: [PATCH] employee single branch update enable --- Apollo/api/application/models/Employee_model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Apollo/api/application/models/Employee_model.php b/Apollo/api/application/models/Employee_model.php index 3502cf9b..ea1e9c2b 100755 --- a/Apollo/api/application/models/Employee_model.php +++ b/Apollo/api/application/models/Employee_model.php @@ -596,7 +596,8 @@ class Employee_model extends CI_Model // echo $this->db->affected_rows();exit(); // update role to login table if ($this->db->affected_rows() == '1') { - $branchCode = $this->get_branch_code($reqBanch['BranchCode'][0]); + // $branchCode = $this->get_branch_code($reqBanch['BranchCode'][0]); + $branchCode = $reqBanch['BranchCode'][0]; $sql = "UPDATE ".STAFF." SET BranchCode='$branchCode' WHERE StaffID='$empFor'"; // update branch to staff table if ($this->db->query($sql) == '1') {