1

Calendar event variables have default value

Hi, 

I think there is a small bug in the calendar event handler. Let me explain.. 

My user story

When a calendar entry (meeting) is starting, I would like to mute my phone. But I want to exclude the meetings where the location is set to 'DSN'. These are all-day events that remind me to work on a different work location, so they are not really 'meetings'. I have a calendar event profile with location set to '!DSN' . 

The problem

The calendar event variables are set to a default value when not present in the event.

Example: I have an active meeting entry in my calendar with title 'test3' , no location and no description.

Event variables and their value:

%CALTITLE: 'test3' 

%CALLOC: '%CALLOC'

%CALDESCR: '%CALDESCR'

A proof of this is attached as a screenshot. Also a task which writes these calendar event variables to user variables is attached. There you can see that the 'calloc' variable is actually set (last user variable) 

As a result, my calendar event profile with location set to '!DSN' is triggered when no location is set, because the location variable has a default value. This was not the case in previous releases (some weeks ago) 

Solution

I think these variables should not be set when they are not filled in the calendar event. My calendar event would then not trigger because the 'calloc' would be empty.

System info

Model: samsung s9

Android: 8.0.0

Tasker: v5. 5