FIX: Langs was not loaded for extrafields error

This commit is contained in:
Noé Courtier
2023-05-22 18:01:32 +02:00
parent 92a7101893
commit 6cacc44051

View File

@@ -1991,6 +1991,8 @@ class ExtraFields
continue;
}
$langs->load($this->attributes[$object->table_element]['langfile'][$key]);
if ($this->attributes[$object->table_element]['required'][$key]) { // Value is required
// Check if functionally empty without using GETPOST (depending on the type of extrafield, a
// technically non-empty value may be treated as empty functionally).