From b88a3c4cc6f01967d3e3a2ad2ed903fd11e31cc6 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Fri, 23 Nov 2018 04:54:28 +0000 Subject: [PATCH 1/2] pd team mapping city : ps --- .../controllers/Common_Masters_Controller.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/api/application/controllers/Common_Masters_Controller.php b/api/application/controllers/Common_Masters_Controller.php index 8540b05b..2d11218b 100644 --- a/api/application/controllers/Common_Masters_Controller.php +++ b/api/application/controllers/Common_Masters_Controller.php @@ -673,21 +673,16 @@ class Common_Masters_Controller extends REST_Controller { // } // } - public function deletePdTeamMapping_post() + + public function deletePdTeamMapping_post() { - // print_r($this->post('pdteam_city_id')); - // die(); - // $pk = $this->post('pdteam_city_id'); + $where_condition_array = array('pdteam_city_id'=>$this->post('pdteam_city_id')); - // $pdTeamCity = array( - // 'pdteam_city_id'=> $this->post('pdteam_city_id')); - - - $pdTeamChild = array( + $pdTeamChild = array( 'pdteam_city_id'=>$this->post('pdteam_city_id')); - $result = $this->Common_Masters_Model->deleteRecords($pdTeamChild,PDTEAMCITY,$where_condition_array); + $result = $this->Common_Masters_Model->deleteRecords($pdTeamChild,PDTEAMCITY,$where_condition_array); if($result == 1) { From 4a7cacda656904089dd3f7d8c10c0edde695c0e1 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Fri, 23 Nov 2018 04:56:20 +0000 Subject: [PATCH 2/2] PD city Mapping : ps --- api/application/models/Common_Masters_Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/application/models/Common_Masters_Model.php b/api/application/models/Common_Masters_Model.php index 6342d79b..09cf2ead 100644 --- a/api/application/models/Common_Masters_Model.php +++ b/api/application/models/Common_Masters_Model.php @@ -111,7 +111,7 @@ class Common_Masters_Model extends SPARQ_Model { public function deleteRecords($record_data = array(),$table_name,$where_condition_array = array(),$print_query = '') { $data = $this->db->delete($table_name,$record_data,$where_condition_array); - + if($print_query == 1) { print_r($this->db->last_query());