forked from Wavyzz/dolibarr
Prepare fix #yogosha6443
This commit is contained in:
@@ -936,7 +936,7 @@ class ExtraFields
|
||||
$this->attribute_computed[$tab->name] = $tab->fieldcomputed;
|
||||
$this->attribute_unique[$tab->name] = $tab->fieldunique;
|
||||
$this->attribute_required[$tab->name] = $tab->fieldrequired;
|
||||
$this->attribute_param[$tab->name] = ($tab->param ? unserialize($tab->param) : '');
|
||||
$this->attribute_param[$tab->name] = ($tab->param ? jsonOrUnserialize($tab->param) : '');
|
||||
$this->attribute_pos[$tab->name] = $tab->pos;
|
||||
$this->attribute_alwayseditable[$tab->name] = $tab->alwayseditable;
|
||||
$this->attribute_perms[$tab->name] = (strlen($tab->perms) == 0 ? 1 : $tab->perms);
|
||||
@@ -954,7 +954,7 @@ class ExtraFields
|
||||
$this->attributes[$tab->elementtype]['computed'][$tab->name] = $tab->fieldcomputed;
|
||||
$this->attributes[$tab->elementtype]['unique'][$tab->name] = $tab->fieldunique;
|
||||
$this->attributes[$tab->elementtype]['required'][$tab->name] = $tab->fieldrequired;
|
||||
$this->attributes[$tab->elementtype]['param'][$tab->name] = ($tab->param ? unserialize($tab->param) : '');
|
||||
$this->attributes[$tab->elementtype]['param'][$tab->name] = ($tab->param ? jsonOrUnserialize($tab->param) : '');
|
||||
$this->attributes[$tab->elementtype]['pos'][$tab->name] = $tab->pos;
|
||||
$this->attributes[$tab->elementtype]['alwayseditable'][$tab->name] = $tab->alwayseditable;
|
||||
$this->attributes[$tab->elementtype]['perms'][$tab->name] = (strlen($tab->perms) == 0 ? 1 : $tab->perms);
|
||||
|
||||
Reference in New Issue
Block a user