[Tickets #2960] NEW: Fix for importing Yahoo Calendar CSV data
bugs@bugs.horde.org
bugs at bugs.horde.org
Fri Nov 11 18:02:43 PST 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=2960
-----------------------------------------------------------------------
Ticket | 2960
Created By | kevin_myer at iu13.org
Summary | Fix for importing Yahoo Calendar CSV data
Queue | Kronolith
Version | HEAD
State | New
Priority | 1. Low
Type | Enhancement
Owners |
-----------------------------------------------------------------------
kevin_myer at iu13.org (2005-11-11 18:02) wrote:
I have a data file from a Yahoo Calendar dump, in CSV format. It contains a
large number of entries that have no end date. Because of a check in the
Kronolith Driver, this causes the import to fail. The following patch
allows the data to import successfully, by making the assumption that if no
end date is given, use the start date. However, I have no idea if this
possibly breaks something else, so if someone else could look at it that
knows about what it might affect, I'd appreciate it.
Index: Driver.php
===================================================================
RCS file: /repository/kronolith/lib/Driver.php,v
retrieving revision 1.153
diff -u -r1.153 Driver.php
--- Driver.php 7 Nov 2005 05:50:50 -0000 1.153
+++ Driver.php 12 Nov 2005 01:56:13 -0000
@@ -766,7 +766,7 @@
return PEAR::raiseError(_("Events must have a start date."));
}
if (empty($hash['duration']) && empty($hash['end_date'])) {
- return PEAR::raiseError(_("Events must have an end date or a
duration."));
+ $hash['end_date'] = $hash['start_date'];
}
if (!empty($hash['duration'])) {
$weeks = str_replace('W', '', $hash['duration'][1]);
More information about the bugs
mailing list