From 1ea8e4c455a0ab0b33f8e0aea187c66d016f7be8 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 24 May 2022 13:02:06 +0300 Subject: [PATCH] [SSE] Fix results hiding after replace all --- apps/spreadsheeteditor/main/app/controller/Search.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Search.js b/apps/spreadsheeteditor/main/app/controller/Search.js index 1ee6a487a..76192db40 100644 --- a/apps/spreadsheeteditor/main/app/controller/Search.js +++ b/apps/spreadsheeteditor/main/app/controller/Search.js @@ -318,8 +318,9 @@ define([ if (!found) { this.allResultsWasRemoved(); } else { + !(found-replaced) && this.allResultsWasRemoved(); Common.UI.info({ - msg: !found-replaced ? Common.Utils.String.format(this.textReplaceSuccess,replaced) : Common.Utils.String.format(this.textReplaceSkipped,found-replaced), + msg: !(found-replaced) ? Common.Utils.String.format(this.textReplaceSuccess,replaced) : Common.Utils.String.format(this.textReplaceSkipped,found-replaced), callback: function() { me.view.focus(); }