This commit is contained in:
velz 2018-11-23 19:23:07 +05:30
commit 6ec20bf57b
2 changed files with 6 additions and 11 deletions

View File

@ -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')); $where_condition_array = array('pdteam_city_id'=>$this->post('pdteam_city_id'));
// $pdTeamCity = array( $pdTeamChild = array(
// 'pdteam_city_id'=> $this->post('pdteam_city_id'));
$pdTeamChild = array(
'pdteam_city_id'=>$this->post('pdteam_city_id')); '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) if($result == 1)
{ {

View File

@ -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 = '') 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); $data = $this->db->delete($table_name,$record_data,$where_condition_array);
if($print_query == 1) if($print_query == 1)
{ {
print_r($this->db->last_query()); print_r($this->db->last_query());