* Calendar: missing backport stalling calendar planner view

Fix the bugfix (b799dda8c7) so planner view doesn't throw errors
This commit is contained in:
nathangray 2016-10-18 10:40:24 -06:00 committed by Ralf Becker
parent 908e5ed114
commit 671f535a82

View File

@ -958,7 +958,7 @@ et2_calendar_event.owner_check = function owner_check(event, parent, owner_too)
{
options = parent.getArrayMgr("sel_options").getRoot().getEntry('owner');
}
if(event.participants && parent.options.owner.length > 0)
if(event.participants && typeof parent.options.owner != 'undefined' && parent.options.owner.length > 0)
{
var parent_owner = jQuery.extend([], typeof parent.options.owner !== 'object' ?
[parent.options.owner] :