Add $langs->load('errors') before radioError

Add $langs->load('errors') before radioError
This commit is contained in:
antonin_tdj 2022-11-30 10:44:10 +01:00 committed by GitHub
parent f1132ef8ba
commit ef065967ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1711,6 +1711,7 @@ class ExtraFields
}
} elseif ($type == 'radio') {
if (!isset($param['options'][$value])) {
$langs->load('errors');
$value = $langs->trans('ErrorNoValueForRadioType');
} else {
$value = $langs->trans($param['options'][$value]);