PD FORM ORDER CHNAGED

This commit is contained in:
velz 2018-12-19 18:06:43 +05:30
parent b58897aab8
commit 87ae0cd078

View File

@ -739,6 +739,7 @@ class PD_Model extends SPARQ_Model {
$this->db->FROM(TEMPLATEFORMS.' as TEMPLATEFORMS');
$this->db->JOIN(PDFORMS.' as PDFORMS','TEMPLATEFORMS.form_id = PDFORMS.pd_form_id');
$this->db->WHERE('TEMPLATEFORMS.fk_template_id',$template_id);
$this->db->WHERE('TEMPLATEFORMS.isactive',1);
$this->db->ORDER_BY('PDFORMS.pd_form_order');
$template_forms = $this->db->GET()->result_array();
foreach($template_forms as $template_key => $value)