fix issue when you approve holidays from massaction it does not set date approval (#34231)

This commit is contained in:
atm-corentin
2025-05-22 17:33:57 +02:00
committed by GitHub
parent 08868566da
commit b47e6abdf5

View File

@@ -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