Update extrafields.class.php

This commit is contained in:
Laurent Destailleur
2020-03-20 10:05:08 +01:00
committed by GitHub
parent a6227aeb6a
commit 5ffc57f3f0

View File

@@ -848,7 +848,7 @@ class ExtraFields
public function fetch_name_optionals_label($elementtype, $forceload = false) public function fetch_name_optionals_label($elementtype, $forceload = false)
{ {
// phpcs:enable // phpcs:enable
global $langs, $conf; global $conf;
if (empty($elementtype)) return array(); if (empty($elementtype)) return array();
@@ -912,11 +912,6 @@ class ExtraFields
$array_name_label[$tab->name] = $tab->label; $array_name_label[$tab->name] = $tab->label;
} }
if (! empty($tab->langs))
{
$langs->load($tab->langs);
}
// Old usage // Old usage
$this->attribute_type[$tab->name] = $tab->type; $this->attribute_type[$tab->name] = $tab->type;
$this->attribute_label[$tab->name] = $tab->label; $this->attribute_label[$tab->name] = $tab->label;