Fix drag & drop to invite for user IDs with more than 1 character

This commit is contained in:
nathangray 2016-07-20 13:34:57 -06:00
parent baefe2b356
commit a69737fa95

View File

@ -1467,13 +1467,13 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e
{
return;
}
var add_owner = jQuery.extend([],row.node.dataset.participants);
var add_owner = [row.node.dataset.participants];
egw().json('calendar.calendar_uiforms.ajax_invite', [
button_id==='series' ? event_data.id : event_data.app_id,
add_owner,
action.id === 'change_participant' ?
jQuery.extend([],source[i].iface.getWidget().getParent().node.dataset.participants) :
[source[i].iface.getWidget().getParent().node.dataset.participants] :
[]
],
function() { loading.remove();}