Merge pull request #13462 from atm-florian/11.0

fix advtargetemailing : fatal call to static attribut (table_element is not a static attribut)
This commit is contained in:
Laurent Destailleur 2020-04-02 13:05:12 +02:00 committed by GitHub
commit 7ad67ff91d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);