GWM : plan update issue
This commit is contained in:
parent
d8dac1ff7f
commit
daeb8993e3
@ -391,9 +391,11 @@ class PlanController extends ResourceController
|
||||
// Update existing plan
|
||||
$this->planModel->update($json['plan_id'], $json);
|
||||
$planId = $json['plan_id'];
|
||||
$updatedBy = $json['updated_by'];
|
||||
} else {
|
||||
// Insert new plan
|
||||
$planId = $this->planModel->insert($json, true);
|
||||
$updatedBy = $json['created_by'];
|
||||
}
|
||||
|
||||
$sendMailForEdit = false;
|
||||
@ -506,7 +508,7 @@ class PlanController extends ResourceController
|
||||
palnStatusHandler($planId , $sendMailForEdit);
|
||||
|
||||
//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
|
||||
$this->generatePlanPdf($planId,false);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user