changes : ps

This commit is contained in:
sanjeev.p 2021-10-20 19:32:43 +05:30
parent f958c4f89c
commit 6ae0af9b52

View File

@ -684,6 +684,7 @@ class Sales_PD_Controller extends REST_Controller {
$state = '';
$form = $this->Sales_PD_Model->selectCustomRecords(array(),array('isactive' => 1,'sales_pd_id' => $records['sales_pd_id'],'section_id' => 1,'status' => 1),SALESPD_SECTION_DATA);
$gen_form = json_decode($form[0]['section_data'],true);
if(!empty($gen_form)){
foreach ($gen_form['questions'] as $g_key => $g_value)
{
if($g_value['question_key'] == 'state')
@ -691,6 +692,7 @@ class Sales_PD_Controller extends REST_Controller {
$state = $g_value['answer_value'];
}
}
}//gen_form closed here.
PDALERTS::sendSalesPDMail($this,$records['sales_pd_id'],$state);
}