We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47b1df7 commit b32fadeCopy full SHA for b32fade
invenio_app_rdm/records_ui/views/deposits.py
@@ -291,6 +291,9 @@ def load_custom_fields():
291
if field_error_label:
292
error_labels[f"custom_fields.{field['field']}"] = field_error_label
293
if getattr(field_instance, "relation_cls", None):
294
+ sort_by = field.get("props", {}).get("sort_by")
295
+ if sort_by:
296
+ field_instance.sort_by = sort_by
297
# add vocabulary options to field's properties
298
field["props"]["options"] = field_instance.options(g.identity)
299
# mark field as vocabulary
0 commit comments