*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 56f4fb31 authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Suppress "missing field" error about curation reviews on draft save

parent be5cf343
No related branches found
No related tags found
1 merge request!57Implement new curation workflow
......@@ -68,10 +68,21 @@ class CurationComponent(BaseCurationComponent):
def update_draft(self, identity, data=None, record=None, errors=None):
"""Update draft handler."""
if current_config_tuw.curations_enabled:
return super().update_draft(
value = super().update_draft(
identity, data=data, record=record, errors=errors
)
# suppress the "missing field: rdm-curation" error as that is more
# confusing than helpful
errors = errors or []
curation_field_errors = [
e for e in errors if e.get("field") == "custom_fields.rdm-curation"
]
for e in curation_field_errors:
errors.remove(e)
return value
TUWRecordsComponents = [
*DefaultRecordsComponents,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment