You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attaching cloud files to a work behaves as expected when creating a brand new work. However, if an existing work is edited and the user attempts attach cloud-based files, and exception is thrown upon saving the work. Files are not attached.
We experienced the bug on 7.3.0
Expected behavior
The user should be able to attach cloud files either when creating a work or editing a work.
Actual behavior
Editing and saving an existing work with new cloud-based files attached throws an error.
The problem is that when editing a work, browse_everything is looking for a form id of edit_generic_work. However the actual form id has the pid attached (e.g. edit_generic_work_h989r335q)
The text was updated successfully, but these errors were encountered:
Originally opened as samvera/hyrax#931
Descriptive summary
Attaching cloud files to a work behaves as expected when creating a brand new work. However, if an existing work is edited and the user attempts attach cloud-based files, and exception is thrown upon saving the work. Files are not attached.
We experienced the bug on 7.3.0
Expected behavior
The user should be able to attach cloud files either when creating a work or editing a work.
Actual behavior
Editing and saving an existing work with new cloud-based files attached throws an error.
Steps to reproduce the behavior
Related work
University of Cincinnati has fixed this locally here:
https://github.com/uclibs/scholar_uc/pull/1371/files
The fix is in the last line of the partial.
The problem is that when editing a work, browse_everything is looking for a form id of
edit_generic_work
. However the actual form id has the pid attached (e.g.edit_generic_work_h989r335q
)The text was updated successfully, but these errors were encountered: