Skip to content

Commit

Permalink
Fix default value for storeItemCheckSum is null (#568)
Browse files Browse the repository at this point in the history
Co-authored-by: Evgeny Igol <[email protected]>
Co-committed-by: Evgeny Igol <[email protected]>
  • Loading branch information
IgolJack authored and KirillovIlya committed Jan 28, 2025
1 parent 39c9695 commit ed9e70c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions word/Editor/Serialize2.js
Original file line number Diff line number Diff line change
Expand Up @@ -6828,19 +6828,19 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa
this.WriteSdtPrDataBinding = function (val)
{
var oThis = this;
if (null != val.prefixMappings) {
if (undefined !== val.prefixMappings) {
this.memory.WriteByte(c_oSerSdt.PrefixMappings);
this.memory.WriteString2(val.prefixMappings);
}
if (null != val.storeItemID) {
if (undefined !== val.storeItemID) {
this.memory.WriteByte(c_oSerSdt.StoreItemID);
this.memory.WriteString2(val.storeItemID);
}
if (null != val.xpath) {
if (undefined !== val.xpath) {
this.memory.WriteByte(c_oSerSdt.XPath);
this.memory.WriteString2(val.xpath);
}
if (null !== val.storeItemCheckSum)
if (undefined !== val.storeItemCheckSum)
{
//let strCustomXmlContent = this.Document.customXml.getContentByDataBinding(val);
//val.recalculateCheckSum(strCustomXmlContent);
Expand Down
8 changes: 4 additions & 4 deletions word/Editor/custom-xml/data-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
*/
function DataBinding(prefix, itemID, xpath, checkSum)
{
this.prefixMappings = prefix ? prefix : undefined;
this.storeItemID = itemID ? itemID : undefined;
this.xpath = xpath ? xpath : undefined;
this.storeItemCheckSum = checkSum ? checkSum : undefined;
this.prefixMappings = prefix ? prefix : undefined;
this.storeItemID = itemID ? itemID : undefined;
this.xpath = xpath ? xpath : undefined;
this.storeItemCheckSum = checkSum ? checkSum : undefined;
}
DataBinding.prototype.copy = function()
{
Expand Down

0 comments on commit ed9e70c

Please sign in to comment.