From 0ba70794dff41914e6219b0283cf80d82ef8f015 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 17 Jan 2010 21:22:14 +0000 Subject: [PATCH] Fix: ical export can works if there is two parallele calls --- htdocs/public/agenda/agendaexport.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/htdocs/public/agenda/agendaexport.php b/htdocs/public/agenda/agendaexport.php index 82222cc2d43..867f241e160 100644 --- a/htdocs/public/agenda/agendaexport.php +++ b/htdocs/public/agenda/agendaexport.php @@ -76,7 +76,7 @@ if (empty($_GET["exportkey"]) || $conf->global->MAIN_AGENDA_XCAL_EXPORTKEY != $_ exit; } -// Define filename +// Define filename with prefix on filters predica (each predica set must have on cache file) $filename=''; if ($format == 'vcal') $filename='dolibarrcalendar.vcs'; if ($format == 'ical') $filename='dolibarrcalendar.ics'; @@ -91,6 +91,15 @@ if (! $filename) llxFooterVierge('$Date$ - $Revision$'); exit; } +foreach ($filters as $key => $value) +{ + if ($key == 'year') $filename.='.year'.$value; + if ($key == 'idaction') $filename.='.id'.$value; + if ($key == 'login') $filename.='.login'.$value; + if ($key == 'logina') $filename.='.logina'.$value; + if ($key == 'logind') $filename.='.logind'.$value; + if ($key == 'logint') $filename.='.logint'.$value; +} $agenda=new ActionComm($db);