Merge pull request #2462 from defrance69/patch-54
Update extrafields.class.php
This commit is contained in:
commit
abcebd7875
@ -1054,6 +1054,7 @@ class ExtraFields
|
|||||||
elseif ($type == 'link')
|
elseif ($type == 'link')
|
||||||
{
|
{
|
||||||
$out='';
|
$out='';
|
||||||
|
|
||||||
$param_list=array_keys($param['options']);
|
$param_list=array_keys($param['options']);
|
||||||
// 0 : ObjectName
|
// 0 : ObjectName
|
||||||
// 1 : classPath
|
// 1 : classPath
|
||||||
@ -1292,14 +1293,15 @@ class ExtraFields
|
|||||||
elseif ($type == 'link')
|
elseif ($type == 'link')
|
||||||
{
|
{
|
||||||
$out='';
|
$out='';
|
||||||
|
// only if something to display (perf)
|
||||||
|
if ($value)
|
||||||
|
{
|
||||||
$param_list=array_keys($params['options']);
|
$param_list=array_keys($params['options']);
|
||||||
// 0 : ObjectName
|
// 0 : ObjectName
|
||||||
// 1 : classPath
|
// 1 : classPath
|
||||||
$InfoFieldList = explode(":", $param_list[0]);
|
$InfoFieldList = explode(":", $param_list[0]);
|
||||||
dol_include_once($InfoFieldList[1]);
|
dol_include_once($InfoFieldList[1]);
|
||||||
$object = new $InfoFieldList[0]($this->db);
|
$object = new $InfoFieldList[0]($this->db);
|
||||||
if ($value)
|
|
||||||
{
|
|
||||||
$object->fetch($value);
|
$object->fetch($value);
|
||||||
$value=$object->getNomUrl(3);
|
$value=$object->getNomUrl(3);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user