Fix missing definition of setSaveErrorMessage too

Follow-up to 6a17f6121c
and 4ec197a8cb.

Bug: T373288
Change-Id: I5250354fec0c217faa43a7fb2f51ee68c4116ab8
This commit is contained in:
Bartosz Dziewoński 2024-08-27 23:13:27 +02:00
parent f43e1fe58f
commit 5bb03b9e7f

View file

@ -1072,7 +1072,7 @@ ReplyWidget.prototype.onReplyClick = function () {
* @param {string} code Error code
* @param {Object} data Error data
*/
ReplyWidget.setSaveErrorMessage = function ( code, data ) {
ReplyWidget.prototype.setSaveErrorMessage = function ( code, data ) {
if ( !(
// Don't duplicate the parentRemovedErrorMessage
code === 'discussiontools-commentname-notfound' && this.parentRemovedErrorMessage