FIX : Access to undeclared static property: Contact::$table_element

This commit is contained in:
gauthier 2020-04-24 15:22:38 +02:00
parent 9764af7e9c
commit e98671e404

View File

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