Page MenuHomePhorge

PHP Fatal error on an event with alarm of type EMAIL and attendee
Closed, ResolvedPublic

Description

PHP Fatal error: Call to undefined method Attendee::email() in /usr/share/roundcubemail/plugins/libkolab/lib/kolab_format_xcal.php on line 243
for an event with

<valarm>
  <properties>
    <action>
      <text>EMAIL</text>
    </action>
    <summary>
      <text>Alarm notification</text>
    </summary>
    <description>
      <text>This is an event reminder</text>
    </description>
    <attendee>
      <cal-address>mailto:%3Cjohn.crummy%40example.org%3E</cal-address>
    </attendee>
    <trigger>
      [removed] 
    </trigger>
  </properties>
</valarm>

Change in line 243 of kolab_format_xcal.php from $cr->email() to $cr->contact()->email() fixes the issue.

Details

Ticket Type
Task

Event Timeline

machniak raised the priority of this task from to 60.
machniak updated the task description. (Show Details)
machniak changed Ticket Type from Task to Task.
machniak subscribed.
machniak claimed this task.

This is duplicate of #3625. Fixed in rRPKe4f8757b28070ada336a856355d4654883af334a