-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#2113] Fix admin form translations #2140
Conversation
Validate the translated attributes of a PublicBodyCategory. Validations (and counterpart specs) are defined in the same file as PublicBodyCategory since the validations must be added after PublicBodyCategory is loaded. TODO: Render errors in the form. Waiting on #2140
8e5806f
to
f65d506
Compare
There's a problem here that I think also applies to #2127, so sorry to notice it belatedly - if validation fails, locales whose forms were empty aren't shown in the subsequent form. This applies to both new/create and edit/update actions |
Fixes submission of form containing both existing and new translations
Fixes submission of form containing both existing and new translations
f65d506
to
168b218
Compare
I think c2e1f22#commitcomment-9734962 applies here |
Strangely it seems like these don't suffer from an orphan translation on failed validation (#2166 (comment)). I expect this is also related to not having to build the transation for the default locale on failed update (3c77b85#diff-31db1e3c6a378d1f5464538c869ef4d9R20, 6de375c#diff-9fb12d9f60bb7aa9f070e38655b5771cR62) |
This needs to be hotfixed on to master, so moved these commits to the existing PR at #2166 |
Fixes #2113
Requires #2127 (for theconfig/test.yml
addition 5b776d1)