sciencehistory / chf-sufia

sufia-based hydra app
Other
9 stars 4 forks source link

Relationships metadata edit screen: "Child Work" autocomplete dropdown is broken. #1233

Open eddierubeiz opened 5 years ago

eddierubeiz commented 5 years ago

Go to:

https://staging.digital.sciencehistory.org/concern/generic_works/41687h49p/edit#relationships

Under Other Works in this Work, the "Child work" autocomplete menu appears to be broken.

eddierubeiz commented 5 years ago

If you search for a blank string, the error message reads "ID cannot be empty." Tried searching for an ID instead of a title, to no avail. Note that the form does not specify what metadata we're supposed use to locate the child work.

eddierubeiz commented 5 years ago

Note to self: to fix this in the console:

child = GenericWork.find('41687h49p')
parent = GenericWork.find('d217qq75n')
parent.members << child
parent.ordered_members << child
parent.save!