apluslms / a-plus

A+ frontend portal - A+ LMS documentation:
https://apluslms.github.io/
Other
67 stars 72 forks source link

Fix non-revealed chapters in ModuleView #1267

Closed PasiSa closed 11 months ago

PasiSa commented 1 year ago

Fixes #1266

Description

What?

[ANSWER HERE]

Why?

[ANSWER HERE]

How?

[ANSWER HERE]

Fixes #

Testing

Remember to add or update unit tests for new features and changes.

What type of test did you run?

[ADD A DESCRIPTION ABOUT WHAT YOU TESTED MANUALLY]

Did you test the changes in

Think of what is affected by these changes and could become broken

Translation

Programming style

Have you updated the README or other relevant documentation?

Is it Done?

Clean up your git commit history before submitting the pull request!

PasiSa commented 12 months ago

I decided to combine a couple of other related small fixes on the same pull request on the same go.

markkuriekkinen commented 11 months ago

@PasiSa During quick local testing, I encountered issues in the next/previous chapter links. In the first chapter of a module, the previous link is completely missing (it does not render even the name without a link: it is completely missing). In some chapters, the next/previous links only render the text without a link even though the student has access to the chapters/modules.