From 85ce25f50583a458e7c794473104d528617c2d40 Mon Sep 17 00:00:00 2001 From: ShimaginAndrey Date: Tue, 14 Dec 2021 17:48:37 +0300 Subject: [PATCH] [SSE] Fix Bug 54510 --- apps/common/mobile/lib/view/Search.jsx | 8 ++++---- apps/spreadsheeteditor/mobile/src/controller/Search.jsx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/common/mobile/lib/view/Search.jsx b/apps/common/mobile/lib/view/Search.jsx index d38dbd2f1..37b4d7f83 100644 --- a/apps/common/mobile/lib/view/Search.jsx +++ b/apps/common/mobile/lib/view/Search.jsx @@ -162,7 +162,7 @@ class SearchView extends Component { } onReplaceClick() { - if (this.searchbar && this.state.searchQuery) { + if (this.searchbar && this.state.replaceQuery) { if (this.props.onReplaceQuery) { let params = this.searchParams(); params.find = this.state.searchQuery; @@ -174,7 +174,7 @@ class SearchView extends Component { } onReplaceAllClick() { - if (this.searchbar && this.state.searchQuery) { + if (this.searchbar && this.state.replaceQuery) { if (this.props.onReplaceAllQuery) { let params = this.searchParams(); params.find = this.state.searchQuery; @@ -281,9 +281,9 @@ class SearchView extends Component { {/* this.onReplaceClick()}>{_t.textReplace} this.onReplaceAllClick()}>{_t.textReplaceAll} */} {isReplaceAll ? ( - this.onReplaceAllClick()}>{_t.textReplaceAll} + this.onReplaceAllClick()}>{_t.textReplaceAll} ) : usereplace ? ( - this.onReplaceClick()}>{_t.textReplace} + this.onReplaceClick()}>{_t.textReplace} ) : null}
diff --git a/apps/spreadsheeteditor/mobile/src/controller/Search.jsx b/apps/spreadsheeteditor/mobile/src/controller/Search.jsx index 7cbf2c6af..f67b8e065 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Search.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Search.jsx @@ -183,7 +183,7 @@ const Search = withTranslation()(props => { let searchIn = +params.searchIn === 1; let searchBy = +params.searchBy === 0; - if (params.find && params.find.length) { + // if (params.find && params.find.length) { api.isReplaceAll = false; let options = new Asc.asc_CFindOptions(); @@ -198,7 +198,7 @@ const Search = withTranslation()(props => { options.asc_setIsReplaceAll(false); api.asc_replaceText(options); - } + // } } const onReplaceAllQuery = params => { @@ -207,7 +207,7 @@ const Search = withTranslation()(props => { let searchIn = +params.searchIn === 1; let searchBy = +params.searchBy === 0; - if (params.find && params.find.length) { + // if (params.find && params.find.length) { api.isReplaceAll = true; let options = new Asc.asc_CFindOptions(); @@ -222,7 +222,7 @@ const Search = withTranslation()(props => { options.asc_setIsReplaceAll(true); api.asc_replaceText(options); - } + // } } return