From c8374e89f42a0581db8e585f7263ce4284f72688 Mon Sep 17 00:00:00 2001 From: Velz2020 Date: Fri, 27 May 2022 22:33:06 +0530 Subject: [PATCH] bugs fixed --- api/application/controllers/Test.php | 2 +- api/application/models/Entity_Management_Model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/application/controllers/Test.php b/api/application/controllers/Test.php index f4df771d..06855ee9 100644 --- a/api/application/controllers/Test.php +++ b/api/application/controllers/Test.php @@ -135,7 +135,7 @@ class Test extends REST_Controller { } } //update face api result in main table - $where_condition_array = array('pd_id' => $pd_id); + $where_condition_array = array('pd_id' => $pdid); $this->PD_Model->updateRecords(['faceapi_result' => json_encode($res_data)],PDTRIGGER,$where_condition_array); //delete local files if created diff --git a/api/application/models/Entity_Management_Model.php b/api/application/models/Entity_Management_Model.php index 04f80789..30da3659 100644 --- a/api/application/models/Entity_Management_Model.php +++ b/api/application/models/Entity_Management_Model.php @@ -14,7 +14,7 @@ class Entity_Management_Model extends SPARQ_Model { { $result_data = array(); - $this->db->SELECT('ENTITY.entity_id, ENTITY.full_name, ENTITY.short_name,ENTITY.createdon, ENTITY.fk_createdby,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby, ENTITY.updatedon, ENTITY.fk_updatedby,concat(USERPROFILE1.first_name," ",USERPROFILE1.last_name) as updatedby, ENTITY.isactive,ENTITY.fk_entity_type_id,ENTITYTYPE.name as entity_name,ENTITY.is_otp_enabled,ENTITY.is_score_card_enabled,ENTITY.is_sms_enabled,ENTITY.is_mail_enabled,ENTITY.is_app_notify_enabled'); + $this->db->SELECT('ENTITY.entity_id, ENTITY.full_name, ENTITY.short_name,ENTITY.createdon, ENTITY.fk_createdby,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby, ENTITY.updatedon, ENTITY.fk_updatedby,concat(USERPROFILE1.first_name," ",USERPROFILE1.last_name) as updatedby, ENTITY.isactive,ENTITY.fk_entity_type_id,ENTITYTYPE.name as entity_name,ENTITY.is_otp_enabled,ENTITY.is_score_card_enabled,ENTITY.is_sms_enabled,ENTITY.is_mail_enabled,ENTITY.is_app_notify_enabled,ENTITY.is_face_api_enabled'); $this->db->FROM(ENTITY.' as ENTITY'); $this->db->JOIN(USERPROFILE.' as USERPROFILE','ENTITY.fk_createdby = USERPROFILE.userid','LEFT'); $this->db->JOIN(USERPROFILE.' as USERPROFILE1','ENTITY.fk_updatedby = USERPROFILE1.userid','LEFT');