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

hugolib: Fix IsTranslated for "old" node types #2834

Merged
merged 1 commit into from Dec 27, 2016

Conversation

bep
Copy link
Member

@bep bep commented Dec 26, 2016

The new logic for creating Page objects from old node types
didn't include itself in the translation logic, so
IsTranslated returned falsely false for sites with only two languages.

The AllTranslations method also returned to few pages in that case.

This commit fixes that.

Fixes #2812

The new logic for creating Page objects from old node types
didn't include itself in the translation logic, so
`IsTranslated` returned falsely false for sites with only two languages.

The `AllTranslations` method also returned too few pages in that case.

This commit fixes that.

Fixes gohugoio#2812
@bep bep merged commit 88b5bbd into gohugoio:master Dec 27, 2016
@bep bep deleted the fix-istranslation branch April 18, 2017 09:19
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

regression: IsTranslated can be wrong for "node types"
1 participant