Skip command/location field if it contains only whitespace charaters
Outlook sends COMMENT field with two newline characters. We should not display Comment record in iTip handling box in such cases, the same for location.
This commit is contained in:
parent
ae69d586c2
commit
5e5aac91a4
1 changed files with 2 additions and 2 deletions
|
@ -791,7 +791,7 @@ class libcalendaring_itip
|
|||
$table->add('label', $this->gettext('recurring'));
|
||||
$table->add('recurrence', $this->lib->recurrence_text($event['recurrence']));
|
||||
}
|
||||
if ($event['location']) {
|
||||
if ($event['location'] && trim($event['location'])) {
|
||||
$table->add('label', $this->gettext('location'));
|
||||
$table->add('location', rcube::Q($event['location']));
|
||||
}
|
||||
|
@ -803,7 +803,7 @@ class libcalendaring_itip
|
|||
$table->add('label', $this->gettext('status'));
|
||||
$table->add('status', $this->gettext('status-' . strtolower($event['status'])));
|
||||
}
|
||||
if ($event['comment']) {
|
||||
if ($event['comment'] && trim($event['comment'])) {
|
||||
$table->add('label', $this->gettext('comment'));
|
||||
$table->add('location', rcube::Q($event['comment']));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue