uclibs / scholar_uc_legacy

Source code for Scholar@UC up to version 3.x. Replaced by ucrate
Other
5 stars 1 forks source link

investigate why batch edit is breaking #1280

Closed lawhorkl closed 7 years ago

lawhorkl commented 7 years ago

Descriptive summary

the batch edit functionality breaks with error Model mismatch. Expected GenericWork. Got: Article. Investigate the error.

Expected behavior

Batch edit functionality working as intended, user able to edit multiple works simultaneously.

Actual behavior

Batch edit breaks with Model mismatch. Expected GenericWork. Got: Article

Steps to reproduce the behavior

  1. go to My Works
  2. select two or more works
  3. click button 'Edit Selected`
lawhorkl commented 7 years ago

batch edit is breaking because of https://github.com/projecthydra/sufia/blob/master/app/forms/sufia/forms/batch_edit_form.rb#L10