Remove unused reaction parameter "containerID"
authorJoshua Rüsweg <ruesweg@woltlab.com>
Tue, 1 Oct 2019 21:43:18 +0000 (23:43 +0200)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Tue, 1 Oct 2019 21:43:24 +0000 (23:43 +0200)
This parameter is a relic from the like system and is no longer needed.
Closes #3082

wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js
wcfsetup/install/files/lib/data/reaction/ReactionAction.class.php

index 782f8f95fcc23a111f6b0b089324263530076d2c..06510ee8225f53d7a492b09615caf08f18ff848f 100644 (file)
@@ -402,7 +402,6 @@ define(
                         */
                        _react: function(reactionTypeId) {
                                this._options.parameters.reactionTypeID = reactionTypeId;
-                               this._options.parameters.data.containerID = this._currentReactionTypeId;
                                this._options.parameters.data.objectID = this._popoverCurrentObjectId;
                                this._options.parameters.data.objectType = this._objectType;
                                
index 523fe88ae1c4573a4c97c0ffd55bb4e459f8e1f9..80344ed893108adf203d4967257d5af860f780ab 100644 (file)
@@ -129,7 +129,6 @@ class ReactionAction extends AbstractDatabaseObjectAction {
                        throw new IllegalLinkException();
                }
                
-               $this->readString('containerID', false, 'data');
                $this->readInteger('objectID', false, 'data');
                $this->readString('objectType', false, 'data');
                
@@ -165,7 +164,6 @@ class ReactionAction extends AbstractDatabaseObjectAction {
                        'objectID' => $this->likeableObject->getObjectID(), 
                        'objectType' => $this->parameters['data']['objectType'],
                        'reactionTypeID' => $reactionData['reactionTypeID'],
-                       'containerID' => $this->parameters['data']['containerID'],
                        'reputationCount' => $reactionData['cumulativeLikes']
                ];
        }