From 1603924e556d81c2f837a3755e600b58d26d3b8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Wed, 28 Aug 2019 21:33:40 +0200 Subject: [PATCH] Fix count buttons for single reaction objects --- .../files/js/WoltLabSuite/Core/Ui/Reaction/CountButtons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1