Skip to content
Snippets Groups Projects
Commit 37e7a005 authored by Brice Werry's avatar Brice Werry :speech_balloon:
Browse files

FIX : Compatibility v21

parent bb483c9d
No related branches found
No related tags found
2 merge requests!208FIX : Compatibility v21,!203FIX : Compatibility v21
Pipeline #6251 passed with warnings
......@@ -699,7 +699,7 @@ elseif ($reshook == 0) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("DateDue")), null, 'errors');
$error++;
}
if (empty($social_contribution->period)) {
if (isset($social_contribution->period) && empty($social_contribution->period) || isset($social_contribution->periode) && empty($social_contribution->periode)) {
$langs->load('errors');
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Period")), null, 'errors');
$error++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment