Fixed bug updating status breaks concurrency token for header so can't update it

This commit is contained in:
2022-03-09 18:04:21 +00:00
parent 3cb4547f82
commit 3afdc20155
3 changed files with 10 additions and 8 deletions

View File

@@ -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;

View File

@@ -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;
}