Merge branch 'master' of https://bitbucket.org/venbaittech/sparqapi
This commit is contained in:
commit
6ec20bf57b
@ -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)
|
||||
{
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user