mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Update extrafields.class.php
This commit is contained in:
committed by
GitHub
parent
a6227aeb6a
commit
5ffc57f3f0
@@ -848,7 +848,7 @@ class ExtraFields
|
||||
public function fetch_name_optionals_label($elementtype, $forceload = false)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $langs, $conf;
|
||||
global $conf;
|
||||
|
||||
if (empty($elementtype)) return array();
|
||||
|
||||
@@ -912,11 +912,6 @@ class ExtraFields
|
||||
$array_name_label[$tab->name] = $tab->label;
|
||||
}
|
||||
|
||||
if (! empty($tab->langs))
|
||||
{
|
||||
$langs->load($tab->langs);
|
||||
}
|
||||
|
||||
// Old usage
|
||||
$this->attribute_type[$tab->name] = $tab->type;
|
||||
$this->attribute_label[$tab->name] = $tab->label;
|
||||
|
||||
Reference in New Issue
Block a user