diff --git a/ChangeLog b/ChangeLog index ea8c4b39b6a..e7e9a17f089 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,7 +5,7 @@ English Dolibarr ChangeLog ***** ChangeLog for 3.5 compared to 3.4 ***** For users: - New: [ task #877 ] Reorganize menus - +- New: [ task #858 ] Holiday module: note on manual holiday assignation ***** ChangeLog for 3.4 compared to 3.3.2 ***** diff --git a/htdocs/holiday/define_holiday.php b/htdocs/holiday/define_holiday.php index 36e93d84271..ce9e6d4854f 100644 --- a/htdocs/holiday/define_holiday.php +++ b/htdocs/holiday/define_holiday.php @@ -67,7 +67,10 @@ if ($action == 'update' && isset($_POST['update_cp'])) } // On ajoute la modification dans le LOG - $holiday->addLogCP($user->id,$userID, $langs->trans('Event').': '.$langs->trans('ManualUpdate'),$userValue); + //If the user set a comment, we add it to the log comment + $comment = (isset($_POST['note_holiday'][$userID]) ? ' ('.$_POST['note_holiday'][$userID].')' : ''); + + $holiday->addLogCP($user->id,$userID, $langs->trans('Event').': '.$langs->trans('ManualUpdate').$comment,$userValue); // Mise à jour des congés de l'utilisateur $holiday->updateSoldeCP($userID,$userValue); @@ -145,8 +148,9 @@ print ''; print '
| '.$langs->trans('ID').' | '; -print ''.$langs->trans('UserName').' | '; +print ''.$langs->trans('UserName').' | '; print ''.$langs->trans('Available').' | '; +print ''.$langs->trans('Note').' | '; print ''.$langs->trans('UpdateButtonCP').' | '; print ''; print ''; print ' '.$langs->trans('days').' | '."\n"; + print ''; print ' | '."\n"; print ''; |