mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Fix: always pass remove_inbox_tags
from UI, dont require in API (#5962)
This commit is contained in:
parent
464ee51de8
commit
a020d807d4
@ -183,7 +183,7 @@ export class DocumentService extends AbstractPaperlessService<Document> {
|
|||||||
update(o: Document): Observable<Document> {
|
update(o: Document): Observable<Document> {
|
||||||
// we want to only set created_date
|
// we want to only set created_date
|
||||||
o.created = undefined
|
o.created = undefined
|
||||||
o.remove_inbox_tags = this.settingsService.get(
|
o.remove_inbox_tags = !!this.settingsService.get(
|
||||||
SETTINGS_KEYS.DOCUMENT_EDITING_REMOVE_INBOX_TAGS
|
SETTINGS_KEYS.DOCUMENT_EDITING_REMOVE_INBOX_TAGS
|
||||||
)
|
)
|
||||||
return super.update(o)
|
return super.update(o)
|
||||||
|
@ -665,6 +665,8 @@ class DocumentSerializer(
|
|||||||
remove_inbox_tags = serializers.BooleanField(
|
remove_inbox_tags = serializers.BooleanField(
|
||||||
default=False,
|
default=False,
|
||||||
write_only=True,
|
write_only=True,
|
||||||
|
allow_null=True,
|
||||||
|
required=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_original_file_name(self, obj):
|
def get_original_file_name(self, obj):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user