@magic-xpa/engine 4.1100.0-dev4110.243 → 4.1100.0-dev4110.244
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/CurrentClientVersion.mjs +2 -2
- package/esm2022/src/commands/ClientToServer/BrowserEscEventCommand.mjs +4 -1
- package/esm2022/src/commands/ClientToServer/CommandFactory.mjs +3 -2
- package/esm2022/src/commands/ClientToServer/TransactionCommand.mjs +5 -1
- package/esm2022/src/commands/IClientToServerCommandInfo.mjs +1 -1
- package/esm2022/src/data/Record.mjs +17 -1
- package/esm2022/src/data/TaskTransactionManager.mjs +6 -2
- package/esm2022/src/remote/RemoteCommandsProcessor.mjs +4 -1
- package/fesm2022/magic-xpa-engine.mjs +34 -3
- package/fesm2022/magic-xpa-engine.mjs.map +1 -1
- package/package.json +4 -4
- package/src/commands/ClientToServer/BrowserEscEventCommand.d.ts +1 -0
- package/src/commands/ClientToServer/CommandFactory.d.ts +1 -1
- package/src/commands/ClientToServer/TransactionCommand.d.ts +2 -0
- package/src/commands/IClientToServerCommandInfo.d.ts +1 -0
- package/src/data/Record.d.ts +1 -0
@@ -76,7 +76,11 @@ export class TaskTransactionManager {
|
|
76
76
|
if (currentTransaction !== null && !this.task.isAborting() &&
|
77
77
|
currentTransaction.isOpened() && currentTransaction.isOwner(this.task) &&
|
78
78
|
currentTransaction.getLevel() === level) {
|
79
|
-
let
|
79
|
+
let updatedFields = '';
|
80
|
+
let currRec = this.task.DataView.getCurrRec();
|
81
|
+
if (currentTransaction.getLevel() === "P")
|
82
|
+
updatedFields = currRec.getUpdatedFields();
|
83
|
+
let cmd = CommandFactory.CreateTransactionCommand(oper, this.task.getTaskTag(), reversibleExit, level, updatedFields);
|
80
84
|
if (this.isClosingTopmostTask && MGDataCollection.Instance.StartupMgData.getFirstTask().ClosingFormUI)
|
81
85
|
this.task.getMGData().CmdsToServer.Add(cmd);
|
82
86
|
try {
|
@@ -100,4 +104,4 @@ export class TaskTransactionManager {
|
|
100
104
|
}
|
101
105
|
}
|
102
106
|
}
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