Calendar - Different way to get participants for quick add -> edit

This commit is contained in:
nathangray 2019-09-16 11:46:10 -06:00
parent 47cde432ef
commit 6cbf065f7a

View File

@ -1793,9 +1793,17 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
// Some select things to pass on // Some select things to pass on
var mgr = widget.getRoot().getArrayMgr('content'); var mgr = widget.getRoot().getArrayMgr('content');
var values = { var values = {
participants: mgr.getEntry('participants'), participants: [],
whole_day: mgr.getEntry('whole_day') whole_day: mgr.getEntry('whole_day')
}; };
for(var id in mgr.getEntry('participants'))
{
var participant = mgr.getEntry('participants')[id];
if (participant && participant.uid)
{
values.participants.push(participant.uid);
}
}
return jQuery.extend( return jQuery.extend(
values, values,
widget.getInstanceManager().getValues(widget.getRoot()) widget.getInstanceManager().getValues(widget.getRoot())