From be73005a335c5c09fc00c4160222e71d3d4fda2a Mon Sep 17 00:00:00 2001 From: Juanjo Menent <jmenent@2byte.es> Date: Tue, 14 Jun 2011 16:08:32 +0000 Subject: [PATCH] task #9747: Can show content of external calendar (ical) into agenda --- htdocs/comm/action/class/ical.class.php | 1 + htdocs/comm/action/index.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/action/class/ical.class.php b/htdocs/comm/action/class/ical.class.php index 5ba1849f68f..e3be36cbfee 100644 --- a/htdocs/comm/action/class/ical.class.php +++ b/htdocs/comm/action/class/ical.class.php @@ -1,6 +1,7 @@ <?php /* Copyright (C) 2006 Roman Ozana <ozana@omdesign.cz> * Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es> + * Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 858d5179f69..9d5521ec3a5 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -559,7 +559,9 @@ if (sizeof($listofextcals)) $event->datef=$dateend+$usertime; $event->type_code="ICALEVENT"; $event->libelle=$icalevent['SUMMARY']; - if ($icalevent['DESCRIPTION']) $event->libelle.='<br>'.dol_nl2br($icalevent['DESCRIPTION'],1); + + //if showing with dol_trunc is not necessary to add a Description + //if ($icalevent['DESCRIPTION']) $event->libelle.='<br>'.dol_nl2br($icalevent['DESCRIPTION'],1); $event->date_start_in_calendar=$event->datep; -- GitLab