GWM : plan update issue
This commit is contained in:
parent
d8dac1ff7f
commit
daeb8993e3
@ -391,9 +391,11 @@ class PlanController extends ResourceController
|
|||||||
// Update existing plan
|
// Update existing plan
|
||||||
$this->planModel->update($json['plan_id'], $json);
|
$this->planModel->update($json['plan_id'], $json);
|
||||||
$planId = $json['plan_id'];
|
$planId = $json['plan_id'];
|
||||||
|
$updatedBy = $json['updated_by'];
|
||||||
} else {
|
} else {
|
||||||
// Insert new plan
|
// Insert new plan
|
||||||
$planId = $this->planModel->insert($json, true);
|
$planId = $this->planModel->insert($json, true);
|
||||||
|
$updatedBy = $json['created_by'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$sendMailForEdit = false;
|
$sendMailForEdit = false;
|
||||||
@ -506,7 +508,7 @@ class PlanController extends ResourceController
|
|||||||
palnStatusHandler($planId , $sendMailForEdit);
|
palnStatusHandler($planId , $sendMailForEdit);
|
||||||
|
|
||||||
//update plan status if all action null
|
//update plan status if all action null
|
||||||
updatePlanStatus($planId,$json['created_by']);
|
updatePlanStatus($planId,$updatedBy);
|
||||||
|
|
||||||
//generate pdf for creation and every updation on the plan
|
//generate pdf for creation and every updation on the plan
|
||||||
$this->generatePlanPdf($planId,false);
|
$this->generatePlanPdf($planId,false);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user