Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit serves two purposes: 1) First, and most important, it fixes #4833 2) Second, it unifies the logic for determining the ids More on 4833 (in case you don't have access to Github) The observed error is as follows: > Depositing a work with past embargo gives no id error > > Depositing a work with an embargo date in the past gives an "No ID > provided for ActiveFedora::Base" error. > > Expected Behavior: Depositing a work with a past embargo should fail > to be created and entered information should be preserved In debugging the application, the `@object.member_of_collection_ids` was the following: `["", "admin_set/default"]` That appears to come from the form submitting a select box that has no selected value (e.g., the `""` value). I verified this logic change by UI interaction.
- Loading branch information