-
-
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
Require a description for a PublicBodyCategory translation #2112
Comments
had a similar issue on Panama last week - #2105 possibly related, is the check at |
It looks like it's used so that it only capitalises the first result. It should probably also check that it's found something. |
This ticket is pretty much wontfix, since it's expecting a description to be there. |
Renamed the ticket to reference what the fix should be. A translation of a |
Covered in #2140 |
Given a
PublicBody
is marked with a tag that relates to aPublicBodyCategory
,When you visit the "show" page of that
PublicBody
where thePublicBodyCategory
does not have adescription
in the current localeThen there should be no error.
Need to add a validation on
PublicBodyCategory
to ensure all locales have a description if the primary locale contains a description.Alternatively, modify
PublicBody#type_of_authority
to only try to render the description if it's available in the current locale.https://github.com/mysociety/alaveteli/blob/rails-3-develop/app/models/public_body.rb#L347
The text was updated successfully, but these errors were encountered: