From 4b0bc0f47db3275c963a8ec8a03d337ab020c79a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 19 Jul 2022 21:39:28 +0200 Subject: [PATCH] VE integration: Remove "unrecoverable" errors Bug: T307330 Depends-On: I9680cc416da5b27881aeb3502f506dcb5d4bb71f Change-Id: Ie133c74072fa3e9ab934a6a8b2052d25b68d1cbf --- .../ve-abusefilter/ve.init.mw.AbuseFilterSaveErrorHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-abusefilter/ve.init.mw.AbuseFilterSaveErrorHandler.js b/modules/ve-abusefilter/ve.init.mw.AbuseFilterSaveErrorHandler.js index 6c8d20c26..18ed64725 100644 --- a/modules/ve-abusefilter/ve.init.mw.AbuseFilterSaveErrorHandler.js +++ b/modules/ve-abusefilter/ve.init.mw.AbuseFilterSaveErrorHandler.js @@ -18,7 +18,7 @@ mw.loader.using( 'ext.visualEditor.targetLoader' ).then( function () { return err.code === 'abusefilter-warning'; } ); // Handle warnings/errors from Extension:AbuseFilter - target.showSaveError( target.extractErrorMessages( data ), isWarning, isWarning ); + target.showSaveError( target.extractErrorMessages( data ), isWarning ); // Emit event for tracking. TODO: This is a bad design target.emit( 'saveErrorAbuseFilter' ); };