Agenda events are cleaner

This commit is contained in:
Laurent Destailleur 2011-06-11 11:04:42 +00:00
parent b870f584a4
commit 4854d1203d

View File

@ -936,10 +936,10 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
} }
// Show title // Show title
if ($event->type_code == 'ICALEVENT') print $event->libelle; if ($event->type_code == 'ICALEVENT') print dol_trunc($event->libelle,$maxnbofchar);
else print $event->getNomUrl(0,$maxnbofchar,'cal_event'); else print $event->getNomUrl(0,$maxnbofchar,'cal_event');
if ($event->type_code == 'ICALEVENT') print '<br>('.$event->icalname.')'; if ($event->type_code == 'ICALEVENT') print '<br>('.dol_trunc($event->icalname,$maxnbofchar).')';
// If action related to company / contact // If action related to company / contact
$linerelatedto='';$length=16; $linerelatedto='';$length=16;