From 7ce2effc61deaa7a01a80714ceda172ef5e28c6d Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 12 Jul 2013 16:47:45 +0200 Subject: [PATCH] Fixes possible issue if marked objects exist that aren't handled at the moment --- wcfsetup/install/files/js/WCF.js | 4 ++++ 1 file changed, 4 insertions(+) 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]); -- 2.20.1