Fix: wrong test

This commit is contained in:
Regis Houssin 2017-10-09 16:50:20 +02:00
parent e2206d9bf2
commit 625e440653

View File

@ -6021,9 +6021,9 @@ class Form
{
$fullname=$object->getFullName($langs);
if ($object->morphy == 'mor') {
$ret.= dol_htmlentities($object->societe) . (($object->societe != $fullname)?' ('.dol_htmlentities($fullname).')':'');
$ret.= dol_htmlentities($object->societe) . ((! empty($fullname) && $object->societe != $fullname)?' ('.dol_htmlentities($fullname).')':'');
} else {
$ret.= dol_htmlentities($fullname) . (($object->societe != $fullname)?' ('.dol_htmlentities($object->societe).')':'');
$ret.= dol_htmlentities($fullname) . ((! empty($object->societe) && $object->societe != $fullname)?' ('.dol_htmlentities($object->societe).')':'');
}
}
else if (in_array($object->element, array('contact', 'user', 'usergroup')))