diff --git a/admin/setup.php b/admin/setup.php index 61edbf6..3c8a46e 100644 --- a/admin/setup.php +++ b/admin/setup.php @@ -127,6 +127,11 @@ dolibarr_set_const($db, 'DOLIMEET_TRAININGSESSION_LOCATION', $trainingSessionLocation, 'chaine', 0, '', $conf->entity); } + $trainingSessionAbsenceRate = GETPOST('training_session_absence_rate', 'int'); + if ($trainingSessionAbsenceRate != getDolGlobalInt('DOLIMEET_TRAININGSESSION_ABSENCE_RATE')) { + dolibarr_set_const($db, 'DOLIMEET_TRAININGSESSION_ABSENCE_RATE', $trainingSessionAbsenceRate, 'integer', 0, '', $conf->entity); + } + setEventMessage('SavedConfig'); header('Location: ' . $_SERVER['PHP_SELF']); exit; @@ -246,6 +251,12 @@ print ''; print ''; + // Training session absence rate + print '