Template_Management_Model.php edited online with Bitbucket

This commit is contained in:
gandhimathi 2021-12-24 07:00:47 +00:00
parent 85ff00ea4f
commit 4fa4ba47ae

View File

@ -309,7 +309,7 @@ class Template_Management_Model extends SPARQ_Model {
}
public function getTemplateFormsV2($value){
$this->db->SELECT('TEMPLATE_JSON_V2.form_id,PDFORMS.pd_form_name,TEMPLATE_JSON_V2.json');
$this->db->SELECT('TEMPLATE_JSON_V2.form_id,PDFORMS.pd_form_name as form_name,TEMPLATE_JSON_V2.json');
$this->db->FROM(TEMPLATE_JSON_V2.' as TEMPLATE_JSON_V2');
$this->db->JOIN(PDFORMS.' as PDFORMS','TEMPLATE_JSON_V2.form_id = PDFORMS.pd_form_id','LEFT');
$this->db->WHERE('TEMPLATE_JSON_V2.map_id',$value);