From f3fd5f4cfaedaf88710ffca243157984119434e9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 7 Mar 2018 11:03:35 +0100 Subject: [PATCH] FIX Label of event show twice --- htdocs/comm/action/index.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index efdad6a3738..a28f01481b7 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -1475,10 +1475,12 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa if ($event->type_code == 'ICALEVENT') print $titletoshow; else { - $savlabel=$event->libelle; - $event->libelle=$titletoshow; - print $event->getNomUrl(0,$maxnbofchar,'cal_event','',0,1); - $event->libelle=$savlabel; + $savlabel=$event->label?$event->label:$event->libelle; + $event->label=$titletoshow; + $event->libelle=$titletoshow; + print $event->getNomUrl(0,$maxnbofchar,'cal_event','',0,1); + $event->label=$savlabel; + $event->libelle=$savlabel; } // Loop on each assigned user