New : parameter for getnomurl in field dpecification
This commit is contained in:
parent
f65df9e541
commit
7e7473e7df
@ -6203,6 +6203,7 @@ abstract class CommonObject
|
||||
$InfoFieldList = explode(":", $param_list[0]);
|
||||
$classname=$InfoFieldList[0];
|
||||
$classpath=$InfoFieldList[1];
|
||||
$getnomurlparam=$InfoFieldList[2];
|
||||
if (! empty($classpath))
|
||||
{
|
||||
dol_include_once($InfoFieldList[1]);
|
||||
@ -6210,7 +6211,7 @@ abstract class CommonObject
|
||||
{
|
||||
$object = new $classname($this->db);
|
||||
$object->fetch($value);
|
||||
$value=$object->getNomUrl(3);
|
||||
$value=$object->getNomUrl(!empty($getnomurlparam)?$getnomurlparam:3);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user