samvera-deprecated / sufia

[DEPRECATED] Sufia: a fully featured, flexible Samvera repository front-end.
http://sufia.io/
Other
111 stars 78 forks source link

Translation errors when edit form submission fails #3058

Closed hackartisan closed 7 years ago

hackartisan commented 7 years ago

Descriptive summary

This is surfacing due to the work addressing #3046 .

If a form is re-loaded from the update action you get translation errors on the following

They can just be copied from the edit translations.

jcoyne commented 7 years ago

It looks to me that this is caused by using action_name. https://github.com/projecthydra/sufia/blob/fadd46344953d42701f011a4aa24e71c9fe7171e/app/views/curation_concerns/base/_form_relationships.html.erb#L10

jcoyne commented 7 years ago

We should probably do what Rails does here, where that part of the translation is limited to update/create: https://github.com/rails/rails/blob/058eb959bff8e43953f435bdf25d35435440d09e/actionview/lib/action_view/helpers/form_helper.rb#L2242