task #9747: Can show content of external calendar (ical) into agenda
This commit is contained in:
parent
ae018ef6a0
commit
be73005a33
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2006 Roman Ozana <ozana@omdesign.cz>
|
/* Copyright (C) 2006 Roman Ozana <ozana@omdesign.cz>
|
||||||
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
|
* 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
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@ -559,7 +559,9 @@ if (sizeof($listofextcals))
|
|||||||
$event->datef=$dateend+$usertime;
|
$event->datef=$dateend+$usertime;
|
||||||
$event->type_code="ICALEVENT";
|
$event->type_code="ICALEVENT";
|
||||||
$event->libelle=$icalevent['SUMMARY'];
|
$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;
|
$event->date_start_in_calendar=$event->datep;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user