From 36c440906e8653fa7175d721eab969ab29774602 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 22 Jun 2015 19:58:02 +0200 Subject: [PATCH] Fix rebuilding clipboard markings if no items are marked --- wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js b/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js index 242578f10b..69a7d94cf0 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js @@ -448,7 +448,7 @@ define( _containers.forEach((function(containerData) { var typeName = containerData.element.getAttribute('data-type'); - var objectIds = (data.returnValues.markedItems.hasOwnProperty(typeName)) ? data.returnValues.markedItems[typeName] : []; + var objectIds = (data.returnValues.markedItems && data.returnValues.markedItems.hasOwnProperty(typeName)) ? data.returnValues.markedItems[typeName] : []; this._rebuildMarkings(containerData, objectIds); }).bind(this)); -- 2.20.1