Closed jhung closed 4 years ago
@jhung I think rather than removing/discarding empty fields, I'd like to resolve this by making all of these sub fields required. That way if a user adds an author/translator/editor/Perma.cc link/Internet Archive link and leaves it blank, they will be notified that it must have content. I've added some code to discard empty authors in case they exist in https://github.com/platform-coop-toolkit/coop-library/commit/d98f458. PR forthcoming.
Describe the bug Blank repeater fields are not properly ignored if blank. Specifically:
To Reproduce Steps to reproduce the behavior:
Expected behavior Any empty repeater field should be ignored (i.e. not validated) and not submitted as part of the Resource metadata.
Desktop (please complete the following information):