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

StudentQuiz: Fix wrong param declaration #465

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

vuvanhieu143
Copy link
Contributor

@vuvanhieu143 vuvanhieu143 commented Oct 2, 2023

Hi @timhunt ,
This change is to fix the wrong declaration of sort param that causing the warning in 724262
image

So this issue is ready for review

@timhunt
Copy link
Member

timhunt commented Oct 4, 2023

So, this change alters the 'sort' argument for the mod_studentquiz_get_comments API from the old illegal value of 'false' to VALUE_REQUIRED (the default for arguments which do not specify).

I don't know what the intention was with the old, invalid code.

However, the only place this service is used passes a value for sort, so it is OK to make it required in future.

So, I will merge this.

@timhunt timhunt merged commit bbe9e4a into studentquiz:main Oct 4, 2023
3 of 4 checks passed
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