-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error with rendering problem #62
Comments
I just dug into this a bit more. In webwork 2, at the bottom of the problem, the following is in the rendered problem:
However, in webwork3, the same block is:
so it's missing the I'm not sure why this is like this. What's the point of printing: "Note:" then hiding it. |
Yet another reason to ditch #
# Add the problemRandomize message and data
#
if ($isWhen && !$okDate) {
$result->{msg} .= "</i><br /><b>".$main::PG->maketext("Note:")."</b> <i>" if $result->{msg};
$result->{msg} .= $main::PG->maketext("You can get a new version of this problem after the due date.");
}
if (!$result->{msg}) {
# hack to remove unwanted "<b>Note: </b>" from the problem
# (it is inserted automatically by Problem.pm when {msg} is non-emtpy).
$result->{msg} .= '<script>var bb = document.getElementsByTagName("b");'
. 'bb[bb.length-1].style.display="none"</script>';
}
$result->{msg} .= qq!<input type="hidden" name="_status" value="$data" />!; |
I think having problem versions will allow us to do this in a built-in way, correct? |
Even webwork2 has a built-in way to do this without problemRandomize.pl (though it has issues). I agree with @drdrew42 that there is no reason to support problemRandomize.pl going forward. In the past the decision was made by the OPL board to not accept problems that include it, so I would like to see it removed from problems in the OPL. Just don't tell @drjt I said that, since it looks like it's mostly MC problems that include it. |
When loading the following problem: Library/MC/PreAlgebra/setPreAlgebraC01S06/SUbtractingIntegers03.pg
I'm getting an error:
I think the actual line is:
webwork3/src/components/common/Problem.vue
Line 191 in 6cf3c93
The text was updated successfully, but these errors were encountered: