This commit is contained in:
@@ -454,6 +454,7 @@ export default {
|
||||
//some ops require a full refresh like ones that trigger contract changes
|
||||
let forceFullRefresh = false;
|
||||
let contractIdBeforeSave = vm.obj.contractId;
|
||||
console.log("ContractIdBeforeSave=", contractIdBeforeSave);
|
||||
|
||||
//reset error object
|
||||
this.saveResult.fatal = false;
|
||||
@@ -524,6 +525,7 @@ export default {
|
||||
});
|
||||
} else {
|
||||
//check if full refresh is necessary
|
||||
console.log("ContractIdAfterSave=", vm.obj.contractId);
|
||||
if (vm.obj.contractId != contractIdBeforeSave) {
|
||||
//there may be others which is why I'm doing it this way with the extra variable
|
||||
forceFullRefresh = true;
|
||||
@@ -661,6 +663,7 @@ async function saveHeader(vm) {
|
||||
//update any server changed fields
|
||||
vm.obj.concurrency = res.data.concurrency;
|
||||
vm.obj.isDirty = false;
|
||||
vm.obj.contractId = res.data.contractId; //may or may not have changed at server, this will ensure entire ui gets updated if it has as all prices may have changed and other stuff
|
||||
|
||||
// //this sets 'o' to all values in assigned *except* the ones itemized with removedKey which is a fake key and just used for this trick to work
|
||||
// //as undefined won't
|
||||
|
||||
Reference in New Issue
Block a user