From: Matthias Schmidt Date: Mon, 22 Jun 2015 17:58:02 +0000 (+0200) Subject: Fix rebuilding clipboard markings if no items are marked X-Git-Tag: 3.0.0_Beta_1~2249^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=36c440906e8653fa7175d721eab969ab29774602;p=GitHub%2FWoltLab%2FWCF.git Fix rebuilding clipboard markings if no items are marked --- 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));