Fix: Correct name for thirdparty created from member.

This commit is contained in:
Laurent Destailleur 2014-06-28 01:53:56 +02:00
parent 018771c0f5
commit 18838ccfa0

View File

@ -813,7 +813,8 @@ if ($rowid)
$name = $object->getFullName($langs);
if (! empty($name))
{
if ($object->societe) $name.=' ('.$object->societe.')';
if ($object->morphy == 'mor' && ! empty($object->societe)) $name=$object->societe.' ('.$name.')';
else if ($object->societe) $name.=' ('.$object->societe.')';
}
else
{