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

Issues on Moodle Mobile App #421

Open
rayjbarrett1 opened this issue Sep 15, 2022 · 5 comments
Open

Issues on Moodle Mobile App #421

rayjbarrett1 opened this issue Sep 15, 2022 · 5 comments

Comments

@rayjbarrett1
Copy link

Only on the mobile app, we are receiving an error message when trying to complete a questionnaire. The Moodle app developers state that it is an issue with the questionnaire plugin.
Here are screenshots of the error:
https://tinyurl.com/2n5a99tp
https://tinyurl.com/2hjonly5
https://tinyurl.com/2nd8t75p .
I am using Moodle version 4.0.1, and I am using the most up-to-date questionnaire update.

@aruethe2
Copy link

aruethe2 commented Jan 3, 2023

We're seeing the same behavior on Moodle 3.11.9 and Questionnaire version 2021062301.

@simmonsgc
Copy link

And on Moodle 3.11.11+ (Build: 20221201) and Questionnaire version 2021062301. First screenshotted error attached in earlier post from Sept 15, 2022.

@haietza
Copy link

haietza commented Jan 30, 2023

It looks like the array $responses just needs to be cast to an object, since that is the data type build_response_from_appdata is requiring for the first parameter. A simple change to

$response = $this->build_response_from_appdata((object) $responses, $sec);

on line 4039 appears to resolve the issue.

@rayjbarrett1
Copy link
Author

Thank you. Will the next Questionnaire update have the fix?

@mchurchward
Copy link
Contributor

Looks like #458 will resolve this

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

No branches or pull requests

5 participants