From d028c36bf5a815547fd143a195e2ce89babba798 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Mon, 24 Sep 2018 11:47:40 +0000 Subject: [PATCH] Common_Masters_Controller.php edited online with Bitbucket --- api/application/controllers/Common_Masters_Controller.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/api/application/controllers/Common_Masters_Controller.php b/api/application/controllers/Common_Masters_Controller.php index a26122ec..f40b3768 100644 --- a/api/application/controllers/Common_Masters_Controller.php +++ b/api/application/controllers/Common_Masters_Controller.php @@ -999,12 +999,10 @@ class Common_Masters_Controller extends REST_Controller { public function saveMaster_post() { - echo 'dfsf'; + $records = $this->post('records'); $table_name = $this->post('master_name'); - print_r($records); - //die(); - + if(false !== array_key_exists(constant($table_name.'ID'),$records)) //Update Record { @@ -1057,7 +1055,7 @@ class Common_Masters_Controller extends REST_Controller { /* For Branch Listing */ public function getListOfBranches_get(){ - $columns = array('m_city.name as cityname','BRANCH.*'); + $columns = array('m_city.name as city_name','BRANCH.*'); $table = BRANCH.' as BRANCH'; $joins = array( array(