Skip to content

Fix metadata fields not working if value is not in collection#1662

Merged
gregorydlogan merged 1 commit intoopencast:r/19.xfrom
Arnei:metadata-multi-fields-not-working
Jan 23, 2026
Merged

Fix metadata fields not working if value is not in collection#1662
gregorydlogan merged 1 commit intoopencast:r/19.xfrom
Arnei:metadata-multi-fields-not-working

Conversation

@Arnei
Copy link
Copy Markdown
Member

@Arnei Arnei commented Jan 16, 2026

Fixes a bug where metadata fields would not work properly and any change to such a metadata field would cause a bad request when trying to save changes.

This bug can be observed on stable.opencast.org right now, where due to how it is configured, the multi value fields "presenters" and "contributors" do not have any options in their dropdowns. Unfortunately our code assumed that selected values must always exist in the dropdown options, causing issues. This should be fixed now.

How to test this

Checkout the PR and connect to stable.opencast.org to test the "presenters" and "contributors" fields.

Fixes a bug where metadata fields would not work
properly and any change to such a metadata field would
cause a bad request when trying to save changes.

This bug can be observed on stable.opencast.org right now,
where due to how it is configured, the multi value fields "presenters"
and "contributors" do not have any options in their dropdowns.
Unfortunately our code assumed that selected values must always
exist in the dropdown options, causing issues. This should
be fixed now
@Arnei Arnei added the type:bug Something isn't working label Jan 16, 2026
@github-actions
Copy link
Copy Markdown

This pull request is deployed at test.editor.opencast.org/1662/2026-01-16_11-19-54/ .
It might take a few minutes for it to become available.

@gregorydlogan gregorydlogan self-assigned this Jan 23, 2026
@gregorydlogan gregorydlogan merged commit 6a5dfd7 into opencast:r/19.x Jan 23, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants