Commit 3b42928
committed
Ensure a false score is saved as 0 in AnswerHash.
Somewhere in the Rendering.pm path, a boolean false score gets
converted into an empty string, which can no longer be used in some
numerical comparisons, as discussed in openwebwork/webwork2#2300.
This fixes the case mentioned in the issue, and sets false values to 0
when setting the score in the AnswerHash to catch other possible cases.1 parent daff8af commit 3b42928
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1696 | 1696 | | |
1697 | 1697 | | |
1698 | 1698 | | |
1699 | | - | |
| 1699 | + | |
1700 | 1700 | | |
1701 | 1701 | | |
1702 | 1702 | | |
| |||
0 commit comments