mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-06-02 13:48:31 -05:00
Fix: mark fields for created objects as dirty (#10022)
This commit is contained in:
parent
5b4b316bbc
commit
ae3ac2b719
@ -698,6 +698,7 @@ export class DocumentDetailComponent
|
|||||||
.subscribe(({ newDocumentType, documentTypes }) => {
|
.subscribe(({ newDocumentType, documentTypes }) => {
|
||||||
this.documentTypes = documentTypes.results
|
this.documentTypes = documentTypes.results
|
||||||
this.documentForm.get('document_type').setValue(newDocumentType.id)
|
this.documentForm.get('document_type').setValue(newDocumentType.id)
|
||||||
|
this.documentForm.get('document_type').markAsDirty()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -721,6 +722,7 @@ export class DocumentDetailComponent
|
|||||||
.subscribe(({ newCorrespondent, correspondents }) => {
|
.subscribe(({ newCorrespondent, correspondents }) => {
|
||||||
this.correspondents = correspondents.results
|
this.correspondents = correspondents.results
|
||||||
this.documentForm.get('correspondent').setValue(newCorrespondent.id)
|
this.documentForm.get('correspondent').setValue(newCorrespondent.id)
|
||||||
|
this.documentForm.get('correspondent').markAsDirty()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -742,6 +744,7 @@ export class DocumentDetailComponent
|
|||||||
.subscribe(({ newStoragePath, storagePaths }) => {
|
.subscribe(({ newStoragePath, storagePaths }) => {
|
||||||
this.storagePaths = storagePaths.results
|
this.storagePaths = storagePaths.results
|
||||||
this.documentForm.get('storage_path').setValue(newStoragePath.id)
|
this.documentForm.get('storage_path').setValue(newStoragePath.id)
|
||||||
|
this.documentForm.get('storage_path').markAsDirty()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user