Fixes possible issue if marked objects exist that aren't handled at the moment
authorMatthias Schmidt <gravatronics@live.com>
Fri, 12 Jul 2013 14:47:45 +0000 (16:47 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 12 Jul 2013 14:47:45 +0000 (16:47 +0200)
wcfsetup/install/files/js/WCF.js

index 91e696816fad3b5a817ea4d89311c068b7befc3e..38e9b3b8db7c30eeb6520b9cb5b401e8fac84a34 100755 (executable)
@@ -1174,6 +1174,10 @@ WCF.Clipboard = {
                this._resetMarkings();
                
                for (var $typeName in data.markedItems) {
+                       if (!this._markedObjectIDs[$typeName]) {
+                               this._markedObjectIDs[$typeName] = { };
+                       }
+                       
                        var $objectData = data.markedItems[$typeName];
                        for (var $i in $objectData) {
                                this._markedObjectIDs[$typeName].push($objectData[$i]);