mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-06 21:46:11 +01:00
Enhancement: use stable unique IDs for custom field select options (#8299)
This commit is contained in:
parent
00485138f9
commit
0fc1860d4c
24 changed files with 494 additions and 101 deletions
|
|
@ -253,7 +253,11 @@ def get_custom_fields_context(
|
|||
):
|
||||
options = field_instance.field.extra_data["select_options"]
|
||||
value = pathvalidate.sanitize_filename(
|
||||
options[int(field_instance.value)],
|
||||
next(
|
||||
option["label"]
|
||||
for option in options
|
||||
if option["id"] == field_instance.value
|
||||
),
|
||||
replacement_text="-",
|
||||
)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue