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

Update sectiontext questions to display on mobile #482 #517

Merged
merged 3 commits into from
Feb 23, 2024

Conversation

sayoder-aprende
Copy link
Contributor

Also refactored the code a bit for clarity: The question class now has an is_numbered() method (default true) that can be overridden for question types that should not have numbers. Replaced some checks for specific question types with checks for is_numbered().

(Re-creating this pull request to get fresh test runner output)

Also refactored the code a bit for clarity: The question class now has
an is_numbered() method (default true) that can be overridden for
question types that should not have numbers. Replaced some checks for
specific question types with checks for is_numbered().
@sayoder-aprende
Copy link
Contributor Author

sayoder-aprende commented Oct 5, 2023

For whatever reason I'm still having trouble getting my local PHPDoc to complain, but I hope this change should do it. (Thanks for re-approving the workflow!)

Copy link
Contributor

@mchurchward mchurchward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the change. Great to add the new method too.

@mchurchward mchurchward merged commit 9dec750 into PoetOS:MOODLE_401_STABLE Feb 23, 2024
lucaboesch pushed a commit to lucaboesch/moodle-mod_questionnaire that referenced this pull request Mar 14, 2024
)

* Update sectiontext questions to display on mobile.

Also refactored the code a bit for clarity: The question class now has
an is_numbered() method (default true) that can be overridden for
question types that should not have numbers. Replaced some checks for
specific question types with checks for is_numbered().

* test: Fix PHPDoc for mobile_question_display
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants