Fixed bug updating status breaks concurrency token for header so can't update it
This commit is contained in:
@@ -854,6 +854,8 @@ async function saveState(vm) {
|
||||
handleSaveError(vm, { error: res.error });
|
||||
} else {
|
||||
vm.obj.states[i] = res.data;
|
||||
//changing status updates the quote header as well so need new concurrency token
|
||||
vm.obj.concurrency = res.data.newQuoteConcurrency;
|
||||
|
||||
//set locked status of entire wo now
|
||||
vm.obj.isLockedAtServer = vm.currentState.locked;
|
||||
|
||||
@@ -945,6 +945,9 @@ async function saveState(vm) {
|
||||
} else {
|
||||
vm.obj.states[i] = res.data;
|
||||
|
||||
//changing status updates the laststatus in the wo header so need to update concurrency here as well
|
||||
vm.obj.concurrency = res.data.newWOConcurrency;
|
||||
|
||||
//set locked status of entire wo now
|
||||
vm.obj.isLockedAtServer = vm.currentState.locked;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user