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
parent 41bcceb44e
commit 47674a96b5

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] :