Skip to content

Commit

Permalink
FIX: Agenda events are not exported in the ICAL, VCAL if begin exactl…
Browse files Browse the repository at this point in the history
…y with the same $datestart
  • Loading branch information
Juanjo Menent committed Oct 20, 2017
1 parent ef61407 commit 75580f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions htdocs/comm/action/class/actioncomm.class.php
Expand Up @@ -2,8 +2,8 @@
/* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2011-2017 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
*
* 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
Expand Down Expand Up @@ -1255,6 +1255,7 @@ function build_exportfile($format,$type,$cachedelay,$filename,$filters)
{
// Note: Output of sql request is encoded in $conf->file->character_set_client
// This assignment in condition is not a bug. It allows walking the results.
$diff = 0;
while ($obj=$this->db->fetch_object($resql))
{
$qualified=true;
Expand Down Expand Up @@ -1289,8 +1290,9 @@ function build_exportfile($format,$type,$cachedelay,$filename,$filters)

if ($qualified && $datestart)
{
$eventarray[$datestart]=$event;
$eventarray[$datestart+$diff]=$event;
}
$diff++;
}
}
else
Expand Down

0 comments on commit 75580f2

Please sign in to comment.