Commit 7529150d authored by konovalovsergey's avatar konovalovsergey

fix bug 36007

parent f65737a8
...@@ -245,6 +245,10 @@ ...@@ -245,6 +245,10 @@
{ {
this["recordTo"] = obj.recordTo; this["recordTo"] = obj.recordTo;
} }
if (typeof obj.isJson != 'undefined')
{
this["isJson"] = obj.isJson;
}
} }
else else
{ {
...@@ -258,6 +262,7 @@ ...@@ -258,6 +262,7 @@
this["recordTo"] = null; this["recordTo"] = null;
this["recordCount"] = null; this["recordCount"] = null;
this["userId"] = null; this["userId"] = null;
this["isJson"] = null;
} }
} }
...@@ -341,6 +346,14 @@ ...@@ -341,6 +346,14 @@
{ {
this["userId"] = v; this["userId"] = v;
}; };
CMailMergeSendData.prototype.get_IsJson = function()
{
return this["isJson"]
};
CMailMergeSendData.prototype.put_IsJson = function(v)
{
this["isJson"] = v;
};
function CAscFootnotePr(obj) function CAscFootnotePr(obj)
{ {
...@@ -6878,6 +6891,7 @@ background-repeat: no-repeat;\ ...@@ -6878,6 +6891,7 @@ background-repeat: no-repeat;\
// Меняем тип состояния (на сохранение) // Меняем тип состояния (на сохранение)
this.advancedOptionsAction = c_oAscAdvancedOptionsAction.Save; this.advancedOptionsAction = c_oAscAdvancedOptionsAction.Save;
var isNoBase64 = typeof ArrayBuffer !== 'undefined'; var isNoBase64 = typeof ArrayBuffer !== 'undefined';
var _fCallbackRequest = fCallbackRequest;
var dataContainer = {data : null, part : null, index : 0, count : 0}; var dataContainer = {data : null, part : null, index : 0, count : 0};
var oAdditionalData = {}; var oAdditionalData = {};
...@@ -6987,7 +7001,19 @@ background-repeat: no-repeat;\ ...@@ -6987,7 +7001,19 @@ background-repeat: no-repeat;\
aRowOut.push(oRow[j]); aRowOut.push(oRow[j]);
aJsonOut.push(aRowOut); aJsonOut.push(aRowOut);
} }
dataContainer.data = dataContainer.data.length + ';' + dataContainer.data + JSON.stringify(aJsonOut); var editorData = dataContainer.data;
dataContainer.data = JSON.stringify(aJsonOut);
options.oMailMergeSendData.put_IsJson(true);
//save Editor.bin after json
_fCallbackRequest = function(incomeObject){
oAdditionalData["savekey"] = incomeObject["data"];
dataContainer = {data : editorData, part : null, index : 0, count : 0};
options.oMailMergeSendData.put_IsJson(false);
AscCommon.saveWithParts(function(fCallback1, oAdditionalData1, dataContainer1) {
sendCommand(t, fCallback1, oAdditionalData1, dataContainer1);
}, fCallback, fCallbackRequest, oAdditionalData, dataContainer);
}
} }
var fCallback = null; var fCallback = null;
if (!options.isNoCallback) if (!options.isNoCallback)
...@@ -7037,7 +7063,7 @@ background-repeat: no-repeat;\ ...@@ -7037,7 +7063,7 @@ background-repeat: no-repeat;\
AscCommon.saveWithParts(function(fCallback1, oAdditionalData1, dataContainer1) AscCommon.saveWithParts(function(fCallback1, oAdditionalData1, dataContainer1)
{ {
sendCommand(t, fCallback1, oAdditionalData1, dataContainer1); sendCommand(t, fCallback1, oAdditionalData1, dataContainer1);
}, fCallback, fCallbackRequest, oAdditionalData, dataContainer); }, fCallback, _fCallbackRequest, oAdditionalData, dataContainer);
} }
// Вставка диаграмм // Вставка диаграмм
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment