Pager is no longer displayed if allow_jumping is disabled

Created on 22 September 2022, almost 2 years ago
Updated 26 July 2024, about 1 month ago

Problem/Motivation

Until #3159179 the pager above question forms was always shown (if the number of questions is higher than the pager_start setting). Since mentioned issue the pager is no longer shown if the allow_jumping setting is set to FALSE. This issue is about restoring the previous behavior (especially when backwards_nagivation is allowed).

When showing the pager while allow_jumping is set to FALSE, we should however not allow the user to navigate to next pages.

Proposed resolution

When allow_jumping is set to FALSE the pager should not be hidden. Instead it should display the next pages as spans (instead of links to prevent jumping).

Whether or not the selectbox should be hidden is not part of this issue; it can be argued that the selectbox should also be not hidden, but instead should display the next pages as disabled.

✨ Feature request
Status

Needs work

Version

7.0

Component

Code - Quiz core

Created by

πŸ‡³πŸ‡±Netherlands casey

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024