From f317419bb9e547833b268b024bfd36994c212ce7 Mon Sep 17 00:00:00 2001 From: WMDE-Fisch Date: Thu, 6 Jun 2024 14:54:05 +0200 Subject: [PATCH] Don't update the editors re-use warning when re-using a reference We only need to set some values that are needed by the `insert` action triggered that then handles the insertion of the ref. The form to edit or add a reference will never be visible in the re-use workflow. No need to update that message then. Change-Id: I710862bdc1bde6a8ce663d863d721cbf075494f0 --- modules/ve-cite/ve.ui.MWReferenceDialog.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ve-cite/ve.ui.MWReferenceDialog.js b/modules/ve-cite/ve.ui.MWReferenceDialog.js index 3f6cf3e84..69cccd2a5 100644 --- a/modules/ve-cite/ve.ui.MWReferenceDialog.js +++ b/modules/ve-cite/ve.ui.MWReferenceDialog.js @@ -201,7 +201,9 @@ ve.ui.MWReferenceDialog.prototype.onSearchResultsChoose = function ( item ) { this.getFragment().removeContent(); this.selectedNode = null; } - this.setReferenceForEditing( ref ); + + this.setFormFieldsFromRef( ref ); + this.referenceModel = ref; this.executeAction( 'insert' ); ve.track( 'activity.' + this.constructor.static.name, { action: 'reuse-choose' } );