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

Language meta field not being saved correctly on tutorials #1172

Closed
hlashbrooke opened this issue Dec 9, 2022 · 3 comments · Fixed by #1252
Closed

Language meta field not being saved correctly on tutorials #1172

hlashbrooke opened this issue Dec 9, 2022 · 3 comments · Fixed by #1252
Assignees
Labels
[Component] Content Website development issues related to the content on Learn. [Component] Learn Plugin Website development issues related to the Learn plugin. Priority - High High priority issue. [Type] Bug Something isn't working on the Learn website.

Comments

@hlashbrooke
Copy link
Collaborator

When saving a new tutorial, the default language is set to 'English', so we would naturally leave it unchanged for new tutorials in English. However, it doesn't seem to save the language properly to the post meta. This causes a problem where the tutorial doesn't show up in the archive after saving because the archive query checks that the language meta field has been set.

The fix is to change it to any other language, save the post, change it back to English, and then save the post again. It's easy to work around, but also easy to forget and quite an annoying issue.

@hlashbrooke hlashbrooke added [Type] Bug Something isn't working on the Learn website. [Component] Content Website development issues related to the content on Learn. labels Dec 9, 2022
@adamwoodnz adamwoodnz self-assigned this Dec 11, 2022
@adamwoodnz adamwoodnz added Priority - High High priority issue. [Component] Learn Plugin Website development issues related to the Learn plugin. labels Dec 11, 2022
@adamwoodnz
Copy link
Contributor

Possible cause:

My guess would be the default value isn’t explicitly set in the DB, just displayed on screen when the DB value is empty. But the SQL query requires it to be actually set.

@westnz
Copy link
Collaborator

westnz commented Jan 11, 2023

It would be great if this bug could be fixed, as our last three tutorials are not showing up.

@westnz
Copy link
Collaborator

westnz commented Jan 11, 2023

I have just used Hugh's 'hack' to make them show up :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Content Website development issues related to the content on Learn. [Component] Learn Plugin Website development issues related to the Learn plugin. Priority - High High priority issue. [Type] Bug Something isn't working on the Learn website.
3 participants