ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Decimal Points Partially Breaks on Tests and Surveys


  • 2016-04-18 16:37:57

    Decimal Points Partially Breaks on Tests and Surveys

    I just tried this on the demo version of ATutor on the atutor.ca and the same problem exists on my installation.

    If you (as the instructor) try to give a question a score of .5 pts. out of 2 (for example), the AT_tests_answers table gets updated correctly and the overall score does as well. However, if you go back into view the result, the question will be identified as "Unmarked" and it will show 0/2 pts.

    I've looked for over an hour now and can't find where to fix this. Please advise as to how to correct this.

    Thanks.

  • 2016-04-18 18:44:28

    Re: Decimal Points Partially Breaks on Tests and Surveys

    change intval() to floatval() in
    mods/_standard/tests/classes/testQuestions.class.php
    about line 567

    https://github.com/atutor/ATutor/commit/d9514c2759445c2338e8ff18489f17983709db52

  • 2016-04-19 04:16:36

    Re: Decimal Points Partially Breaks on Tests and Surveys

    ATutor version - 2.2.1

    I asked if this change is necessary to apply in all cases, even if we use only whole numbers (no decimals) to score the answers in the quiz. That is, if I only use for example: 1, 5 or 10 points for each answer do I need to modify "testQuestions.class.php"?

    Thank you!

  • 2016-04-19 06:25:26

    Re: Decimal Points Partially Breaks on Tests and Surveys

    No, you do not need the change if you only use whole numbers.

  • 2016-04-19 10:00:13

    Re: Decimal Points Partially Breaks on Tests and Surveys

    That worked. Thanks Greg!