Skip to content

Commit 1871fc4

Browse files
committed
fix: resolve record comparison issue in updates
1 parent a1d9e37 commit 1871fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/models/job_models/migrationJobTask.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ export default class MigrationJobTask {
17511751
return Object.keys(cloned)
17521752
.filter(key => fieldsToCompareRecords.length == 0 || fieldsToCompareRecords.indexOf(key) >= 0)
17531753
.some(key => {
1754-
if (key != "Id" && key != CONSTANTS.__ID_FIELD_NAME) {
1754+
if (key != "Id" && key != CONSTANTS.__ID_FIELD_NAME && key != CONSTANTS.__SOURCE_ID_FIELD_NAME) {
17551755
// FIXME: && target.hasOwnProperty(key) solves issue
17561756
// Auto-number fields ignored when used as sourceField in fieldMapping #89
17571757
// But it causes error when copying self-referencing fields with field mapping with complex extgernal id

0 commit comments

Comments
 (0)