GWM : log added for approval and rejection

This commit is contained in:
Gowtham M 2025-09-18 17:36:08 +05:30
parent 98ae2224ec
commit 04988b7907

View File

@ -742,6 +742,7 @@ class PlanController extends ResourceController
$plan_id = $json['plan_id'];
$user_id = $json['user_id'];
log_message('info', "Plan Approval triggered by user_id : {$user_id}, plan_id: {$plan_id}");
$delegation_user_id = $json['delegation_user_id'] ?? 0;
if ((int)$delegation_user_id == 0)
@ -844,6 +845,7 @@ class PlanController extends ResourceController
$plan_id = $json['plan_id'];
$user_id = $json['user_id'];
log_message('info', "Plan Rejection triggered by user_id : {$user_id}, plan_id: {$plan_id}");
$reason = $json['reason'];
$delegation_user_id = $json['delegation_user_id'] ?? 0;