List of events show user firstname by default

This commit is contained in:
Laurent Destailleur
2018-12-23 01:28:36 +01:00
parent da3d1ab8b8
commit 35debd06fb
5 changed files with 19 additions and 14 deletions

View File

@@ -462,7 +462,7 @@ abstract class CommonObject
*
* @param Translate $langs Language object for translation of civility (used only if option is 1)
* @param int $option 0=No option, 1=Add civility
* @param int $nameorder -1=Auto, 0=Lastname+Firstname, 1=Firstname+Lastname, 2=Firstname
* @param int $nameorder -1=Auto, 0=Lastname+Firstname, 1=Firstname+Lastname, 2=Firstname, 3=Firstname if defined else lastname
* @param int $maxlen Maximum length
* @return string String with full name
*/
@@ -4208,7 +4208,7 @@ abstract class CommonObject
$line->fetch_product();
$productstatic = $line->product;
}
$this->tpl['label'].= $productstatic->getNomUrl(1);
$this->tpl['label'].= ' - '.(! empty($line->label)?$line->label:$line->product_label);
// Dates
@@ -4225,7 +4225,7 @@ abstract class CommonObject
}else {
$this->tpl['label'].= ($line->label ? ' '.$line->label : '');
}
// Dates
if ($line->product_type == 1 && ($date_start || $date_end))
{