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

Sequencing response format #447

Merged
merged 15 commits into from
Feb 26, 2019
Merged

Conversation

garemoko
Copy link
Contributor

Description
Adds response and options information to gap select type questions.

Note this also includes PR #446 because I was worried about conflicts if I used two separate branches both forked from master.

Related Issues
Fixes #440

PR Type

  • Enhancement

@garemoko
Copy link
Contributor Author

@ryansmith94 this is ready to review

$correctresponsepattern = implode ('[,]', $selections);
break;
default:
$correctresponsepattern = utils\get_string_html_removed($questionattempt->rightanswer);
Copy link
Member

Choose a reason for hiding this comment

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

Do choices also need to be imploded in the same way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure, but I don't think so because I think the multi-choice question is only one option.

That would be out of scope for this PR anyway. The goal here is to preserve the behavior of the multi-choice question while changing the gap select one.

Copy link
Member

Choose a reason for hiding this comment

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

I think it's ok to do this for multichoice too because this is also an issue for multichoiceset questions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, since you insist, I fixed for multichoice questions where there are multiple correct answers too. :-)

Waiting for tests to run....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tests passed

Copy link
Member

Choose a reason for hiding this comment

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

Haha okay thanks Andrew 👍 looks good

@ryasmi ryasmi merged commit 68b16e3 into xAPI-vle:master Feb 26, 2019
@HT2Bot
Copy link
Member

HT2Bot commented Feb 26, 2019

🎉 This PR is included in version 4.2.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants