FreePBX Distro 126.96.36.199
Calendar Plugin 188.8.131.52
Time Conditions Plugin 184.108.40.206
I have setup an outlook calendar with 2 calendar event groups associated with it. One for closed and one for holidays. In each of those events I have categories assigned with no specific events associated with them per the “Specific Categories” setting that says “If no events are selected but categories are selected then all events in said categories will match” This leads me to believe that any event set to the correct category should match true and trigger a match in the time condition I have setup.
The problem I am having is that with this setup it always matches false. If I test and set a specific event it matches true and the time condition fires correctly. Is this a bug or am I just using the calendar event incorrectly?
The following returns false even though a category is set and should match
Any help is greatly appreciated. Thank you.
I found and solved my own problem. Digging through the code I found that there was no code in the section for checking if only category was set. So I added the code to handle calendar event conditions with only categories. If anyone is interested I can supply the fix.
FreePBX is an open source project. We love getting contributions from the outside community and thank you for your efforts. We’d like to take your work and apply it directly if possible.
Firstly we’d need you to fill out the CLA: https://wiki.freepbx.org/display/FOP/Code+License+Agreement
Once that is done you can submit your work anywhere, here, github, git.freepbx.org.
For anyone else having issues like this, with the Calendar Module and connecting to remote iCal or EWS calendars, updating to 220.127.116.11 does the trick. From what I read in pull and related bug reports, it has some pretty large changes to the underlying mechanics of the Calendar and EWS stuff, which solve all the issues with linking calendars and some of the all-day events too.
Anyway as of right now you have to enable Edge modules in Settings->Advanced Settings to get it, though I’m sure that module version will go stable at some point soon.