mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	fix doc detail discard perm changes
This commit is contained in:
		@@ -446,6 +446,10 @@ export class DocumentDetailComponent
 | 
				
			|||||||
      .subscribe({
 | 
					      .subscribe({
 | 
				
			||||||
        next: (doc) => {
 | 
					        next: (doc) => {
 | 
				
			||||||
          Object.assign(this.document, doc)
 | 
					          Object.assign(this.document, doc)
 | 
				
			||||||
 | 
					          doc['permissions_form'] = {
 | 
				
			||||||
 | 
					            owner: doc.owner,
 | 
				
			||||||
 | 
					            set_permissions: doc.permissions,
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
          this.title = doc.title
 | 
					          this.title = doc.title
 | 
				
			||||||
          this.documentForm.patchValue(doc)
 | 
					          this.documentForm.patchValue(doc)
 | 
				
			||||||
          this.openDocumentService.setDirty(doc, false)
 | 
					          this.openDocumentService.setDirty(doc, false)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user