changes : ps
This commit is contained in:
parent
f958c4f89c
commit
6ae0af9b52
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user