hudmol/archivesspace — pull request #663 by payten (2014-01-30 23:17:21+00:00)
Title: Add validation to single dates to require either a begin or expression

I found I could create a Digital Object Component with a 'single' date with just an end date and without a begin or expression value. This broke the component's 'title' generator that expects a begin date or expression.

I've added a new validation that checks for the begin or expression values when the date is 'single'... will this be ok without a migration?

The alternative is we expose the 'end date' field on the date form when 'single' is selected - it's currently hidden, and update the title generation code to pick up the 'end date' when the begin date is missing.