diff --git a/ayanova/src/components/work-order-address.vue b/ayanova/src/components/work-order-address.vue index a12b1396..f5002220 100644 --- a/ayanova/src/components/work-order-address.vue +++ b/ayanova/src/components/work-order-address.vue @@ -450,6 +450,7 @@ export default { }, fieldValueChanged(ref) { if (!this.pvm.formState.loading && !this.pvm.formState.readonly) { + this.value.isDirty = true; window.$gz.form.fieldValueChanged(this.pvm, ref); } }, diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index 0a50a385..ecbc416f 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -941,6 +941,7 @@ async function saveHeader(vm) { if (!vm.obj.isDirty) { return; } + const isPost = vm.obj.id == 0; //the purpose of this is to remove the child collections so only the header itself is submitted