Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-12421 When a create a data set for a calculated question with 1 decimal, whole numbers don't keep the decimal.
  3. MDL-12503

The function generate_dataset_item() of calculated question type has a bug on loguniform option

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6.7, 1.7.5, 1.8.5, 1.9.1, 2.0
    • Component/s: Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      The function generate_dataset_item() does not generate correclty the dataset_item() in the loguniform option as it use the decimal paramter as a numbre of significant figure. So is decimal is set to 0 the result is 0...
      A bug unnoticed since the CREATION of this question type.
      This is why I set to 1.6. but could be 1.5.
      As it was unnoticed I will not merge to 1.5.

        Attachments

          Activity

            People

            • Assignee:
              ppichet Pierre Pichet
              Reporter:
              ppichet Pierre Pichet
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Apr/08