Bug 1544120 - drag and drop not working in multiweek view, r=philipp
authorMerike Sell <merike.sell@eesti.ee>
Sat, 25 May 2019 21:20:02 +0300
changeset 35687 def8fdac20ee35662fc7f8b696ba2345bd889ecd
parent 35686 bb7fbb8a04055e487a65286ae9955df8a452802b
child 35688 650172622d9943613c3739eb920bd050bcea1cb9
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersphilipp
bugs1544120
Bug 1544120 - drag and drop not working in multiweek view, r=philipp
calendar/base/content/calendar-dnd-listener.js
--- a/calendar/base/content/calendar-dnd-listener.js
+++ b/calendar/base/content/calendar-dnd-listener.js
@@ -602,17 +602,17 @@ function invokeEventDragSession(aItem, a
     transfer.setTransferData("text/calendar", supportsString, supportsString.data.length * 2);
     transfer.setTransferData("text/unicode", supportsString, supportsString.data.length * 2);
 
     let action = Ci.nsIDragService.DRAGDROP_ACTION_MOVE;
     let mutArray = Cc["@mozilla.org/array;1"].createInstance(Ci.nsIMutableArray);
     mutArray.appendElement(transfer);
     aXULBox.sourceObject = aItem;
     try {
-        cal.getDragService().invokeDragSession(aXULBox, "", mutArray, action);
+        cal.getDragService().invokeDragSession(aXULBox, null, mutArray, action);
     } catch (e) {
         if (e.result != Cr.NS_ERROR_FAILURE) {
             // Pressing Escape on some platforms results in NS_ERROR_FAILURE
             // being thrown. Catch this exception, but throw anything else.
             throw e;
         }
     }
 }