Merge pull request #5739 from atm-ph/fix_4.0_clone_object
Fix clone object with "link" as extrafield
This commit is contained in:
commit
abe7d91bb5
@ -4173,7 +4173,9 @@ abstract class CommonObject
|
||||
$object = new $InfoFieldList[0]($this->db);
|
||||
if ($value)
|
||||
{
|
||||
$res=$object->fetch(0,$value);
|
||||
if (is_numeric($value)) $res=$object->fetch($value);
|
||||
else $res=$object->fetch('',$value);
|
||||
|
||||
if ($res > 0) $this->array_options[$key]=$object->id;
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user