From b47e6abdf59b1a5eba4f14e4f22c2fcccc3eeed4 Mon Sep 17 00:00:00 2001 From: atm-corentin <165782689+atm-corentin@users.noreply.github.com> Date: Thu, 22 May 2025 17:33:57 +0200 Subject: [PATCH] fix issue when you approve holidays from massaction it does not set date approval (#34231) --- htdocs/core/actions_massactions.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/core/actions_massactions.inc.php b/htdocs/core/actions_massactions.inc.php index 94e39d68610..3583036a89f 100644 --- a/htdocs/core/actions_massactions.inc.php +++ b/htdocs/core/actions_massactions.inc.php @@ -1631,6 +1631,8 @@ if (!$error && ($massaction == 'approveleave' || ($action == 'approveleave' && $ $objecttmp->date_valid = dol_now(); $objecttmp->fk_user_valid = $user->id; + $objecttmp->date_approval = dol_now(); + $objecttmp->fk_user_approve = $user->id; $objecttmp->status = Holiday::STATUS_APPROVED; $objecttmp->statut = $objecttmp->status; // deprecated