FIX: Load the translation file for extrafields
This commit is contained in:
parent
fca6d45baa
commit
a6227aeb6a
@ -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 $conf;
|
global $langs, $conf;
|
||||||
|
|
||||||
if (empty($elementtype)) return array();
|
if (empty($elementtype)) return array();
|
||||||
|
|
||||||
@ -912,6 +912,11 @@ 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;
|
||||||
@ -1944,6 +1949,10 @@ class ExtraFields
|
|||||||
{
|
{
|
||||||
$align = "right";
|
$align = "right";
|
||||||
}
|
}
|
||||||
|
elseif ($type == 'price')
|
||||||
|
{
|
||||||
|
$align="right";
|
||||||
|
}
|
||||||
elseif ($type == 'double')
|
elseif ($type == 'double')
|
||||||
{
|
{
|
||||||
$align = "right";
|
$align = "right";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user