fix advtargetemailing : fatal call to static attribut (that is not static: table_element)

This commit is contained in:
florian HENRY 2020-03-31 12:04:34 +02:00
parent 3860f24908
commit 5658d783d6

View File

@ -263,7 +263,8 @@ if (!empty($conf->categorie->enabled) && $user->rights->categorie->lire) {
// Standard Extrafield feature
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) {
$elementtype = Societe::$table_element;
$socstatic=new Societe($db);
$elementtype = $socstatic->table_element;
// fetch optionals attributes and labels
dol_include_once('/core/class/extrafields.class.php');
$extrafields = new ExtraFields($db);