From: Joshua Rüsweg Date: Wed, 28 Aug 2019 19:33:40 +0000 (+0200) Subject: Fix count buttons for single reaction objects X-Git-Tag: 5.2.0_Beta_2~83 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1603924e556d81c2f837a3755e600b58d26d3b8b;p=GitHub%2FWoltLab%2FWCF.git Fix count buttons for single reaction objects --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/CountButtons.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/CountButtons.js index e0ac81801a..6155e2e16d 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/CountButtons.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/CountButtons.js @@ -107,7 +107,7 @@ define( updateCountButtons: function(objectId, data) { var triggerChange = false; this._objects.get(objectId).forEach(function(elementData) { - var summaryList = elBySel(this._options.summaryListSelector, elementData.element); + var summaryList = elBySel(this._options.summaryListSelector, this._options.isSingleItem ? undefined : elementData.element); // summary list for the object not found; abort if (summaryList === null) return;