[Mobile] Fix Bug 47699

This commit is contained in:
Julia Radzhabova 2020-11-26 17:23:44 +03:00
parent 36599894d6
commit 2d2a47aa2d
3 changed files with 6 additions and 6 deletions

View file

@ -306,7 +306,7 @@ define([
matchword = Common.SharedSettings.get('search-highlight') || false;
if (search && search.length) {
if (!this.api.asc_replaceText(search, replace, false, matchcase, matchword)) {
if (!this.api.asc_replaceText(search, replace || '', false, matchcase, matchword)) {
var me = this;
uiApp.alert(
'',
@ -324,7 +324,7 @@ define([
matchword = Common.SharedSettings.get('search-highlight') || false;
if (search && search.length) {
this.api.asc_replaceText(search, replace, true, matchcase, matchword);
this.api.asc_replaceText(search, replace || '', true, matchcase, matchword);
}
},

View file

@ -294,7 +294,7 @@ define([
var matchcase = Common.SharedSettings.get('search-case-sensitive') || false;
if (search && search.length) {
if (!this.api.asc_replaceText(search, replace, false, matchcase)) {
if (!this.api.asc_replaceText(search, replace || '', false, matchcase)) {
var me = this;
uiApp.alert(
'',
@ -311,7 +311,7 @@ define([
var matchcase = Common.SharedSettings.get('search-case-sensitive') || false;
if (search && search.length) {
this.api.asc_replaceText(search, replace, true, matchcase);
this.api.asc_replaceText(search, replace || '', true, matchcase);
}
},

View file

@ -345,7 +345,7 @@ define([
var options = new Asc.asc_CFindOptions();
options.asc_setFindWhat(search);
options.asc_setReplaceWith(replace);
options.asc_setReplaceWith(replace || '');
options.asc_setIsMatchCase(matchCase);
options.asc_setIsWholeCell(matchCell);
options.asc_setScanOnOnlySheet(lookInSheet);
@ -369,7 +369,7 @@ define([
var options = new Asc.asc_CFindOptions();
options.asc_setFindWhat(search);
options.asc_setReplaceWith(replace);
options.asc_setReplaceWith(replace || '');
options.asc_setIsMatchCase(matchCase);
options.asc_setIsWholeCell(matchCell);
options.asc_setScanOnOnlySheet(lookInSheet);