Permalink
Browse files

Merge branch 'MDL-35767-MOODLE_23_STABLE' of git://git.luns.net.uk/mo…

…odle into MOODLE_23_STABLE
  • Loading branch information...
2 parents aaed6d7 + e6b958d commit 5e6f2cda64df1b26998337a5bc4e501308d4290e @danpoltawski danpoltawski committed Oct 4, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/yui/dragdrop/dragdrop.js
@@ -167,6 +167,10 @@ YUI.add('moodle-core-dragdrop', function(Y) {
// this.lastdroptarget (ghost node we use for indicating where to drop)
e.drag = e.target;
e.drop = this.lastdroptarget;
+ // Check that drag object belongs to correct group
+ if (!this.in_group(e.drag)) {
+ return;
+ }
// Check that drop object belong to correct group
if (!e.drop || !e.drop.inGroup(this.groups)) {
return;

0 comments on commit 5e6f2cd

Please sign in to comment.