Skip to content
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

Closed
wants to merge 8 commits into from

Conversation

garethrees
Copy link
Member

Fixes #2113
Requires #2127 (for the config/test.yml addition 5b776d1)

garethrees added a commit that referenced this pull request Feb 4, 2015
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
@crowbot crowbot force-pushed the 2113-admin-form-translations branch 2 times, most recently from 8e5806f to f65d506 Compare February 5, 2015 15:45
@crowbot
Copy link
Member

crowbot commented Feb 5, 2015

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

out

Fixes submission of form containing both existing and new translations
Fixes submission of form containing both existing and new
translations
@crowbot
Copy link
Member

crowbot commented Feb 19, 2015

I think c2e1f22#commitcomment-9734962 applies here
locale-bug

@garethrees
Copy link
Member Author

I think c2e1f22#commitcomment-9734962 applies here

#2140 (comment)

Fixed in 3c77b85 and 6de375c

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)

@garethrees
Copy link
Member Author

This needs to be hotfixed on to master, so moved these commits to the existing PR at #2166

@garethrees garethrees closed this Feb 25, 2015
@crowbot crowbot deleted the 2113-admin-form-translations branch May 29, 2015 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants