This commit is contained in:
2021-04-09 21:58:08 +00:00
parent 8c6c68aa81
commit 20ba85e14e

View File

@@ -667,6 +667,9 @@ async function saveItems(vm) {
if (isPost) {
o.id = res.data.id;
o.workorderId = res.data.workorderId;
//walk all unsaved children and set the workorder id so they can save
o.scheduledUsers.forEach(z => (z.workorderItemId = o.id));
//todo: children
}
}
} else {