[Tickets #12244] Re: edit event in CalDAV calendar does not work
noreply at bugs.horde.org
noreply at bugs.horde.org
Thu May 16 11:55:29 UTC 2013
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/12244
------------------------------------------------------------------------------
Ticket | 12244
Updated By | skhorde at smail.inf.fh-bonn-rhein-sieg.de
Summary | edit event in CalDAV calendar does not work
Queue | Kronolith
Version | 4.1.0beta1
Type | Bug
State | Unconfirmed
Priority | 2. Medium
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
skhorde at smail.inf.fh-bonn-rhein-sieg.de (2013-05-16 11:55) wrote:
> Editing a event created with Thunderbird/Lightning (latest on
> Windows) in a Kronolith calender subscribed with CalDAV result in
> "MODIFICATION_FAILED" error. The server log shows the following:
>
> 2013-05-10 10:12:38: (mod_fastcgi.c.2701) FastCGI-stderr: PHP
> message: PHP Fatal error: Call to a member function before() on a
> non-object in /var/www/horde/kronolith/lib/Application.php on line 822
I use this workaround:
try {
if(!empty($modified)) {
$new_data_time = $content->getAttribute('LAST-MODIFIED');
if(!empty($new_data_time)) {
//Horde::logMessage('SKA: last-modified: '.$new_data_time. "
".date("Y-m-d H:i:s", $new_data_time), 'NOTICE');
//Horde::logMessage('SKA: modified: '.$modified, 'NOTICE');
if(is_object($new_data_time) && $new_data_time->before($modified)
|| !is_object($new_data_time) && date("Y-m-d H:i:s",
$new_data_time) < $modified) {
/* LAST-MODIFIED timestamp of existing entry is newer:
* don't replace it. */
//Horde::logMessage('SKA: modified entry is newer skip update', 'NOTICE');
continue;
}
}
}
} catch (Horde_Icalendar_Exception $e) {
}
More information about the bugs
mailing list