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

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