invenio-app-rdm
invenio-app-rdm copied to clipboard
New version: `Publication date` is cleared
Package version (if known): 12.0.0.dev3
Describe the bug
The default value for the publication date for new drafts is the current date, which works fine. However, when creating a new version of an existing record, this field is emptied in the deposit form. This is mildly annoying (especially for testing purposes), because it is a required field and prevents me from clicking the publish button.
Expected behavior
I would expect the field to be already filled out and have one of two values:
- Either the same value as the previous version of the record
- Recalculated default value (preferred for me, because it is effectively a new record)
Screenshots
Initial new draft
When initially creating a new draft, the publication date is pre-filled with the current date:
New version
However, when creating a new version of an existing record, the publication date is (in contrast to other fields) suddenly wiped: