From: Matthias Schmidt Date: Fri, 12 Jul 2013 14:47:45 +0000 (+0200) Subject: Fixes possible issue if marked objects exist that aren't handled at the moment X-Git-Tag: 2.0.0_Beta_5~66^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ce2effc61deaa7a01a80714ceda172ef5e28c6d;p=GitHub%2FWoltLab%2FWCF.git Fixes possible issue if marked objects exist that aren't handled at the moment --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 91e696816f..38e9b3b8db 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -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]);