Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-45873

Database activity menu won't display zero value - inconsistency

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Create a database activity
      • Add a menu field - not a required field - with options 0, 1, 2 (type as three separate lines)
      • Click "Templates" to generate default templates
      • Click "Add"
      • VERIFY: The form for the new entry contains a drop-down menu with 4 options, namely, "Choose...", "0", "1", "2".
      • Select "0" and click "Save and View"
      • VERIFY: Content of the new entry is displayed as "0"
      Show
      Create a database activity Add a menu field - not a required field - with options 0, 1, 2 (type as three separate lines) Click "Templates" to generate default templates Click "Add" VERIFY: The form for the new entry contains a drop-down menu with 4 options, namely, "Choose...", "0", "1", "2". Select "0" and click "Save and View" VERIFY: Content of the new entry is displayed as "0"
    • Workaround:
      Hide

      Use a value like 'empty/none' instead of 0

      Show
      Use a value like 'empty/none' instead of 0
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_27_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      (Remaining issue is for *menu fields *only, all other parts have been solved before.)

      In the database activity, if you have options of 0,1, 2 as radio buttons, tick boxes or multi-menu options they all display, but if you use the same values in a standard dropdown menu the zero value is ignored, and only the positive numbers are shown in the 'add entry' options.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bostelm Henning Bostelmann
              Reporter:
              gordonmc Gordon McLeod
              Peer reviewer:
              Ankit Agarwal Ankit Agarwal
              Integrator:
              Dan Poltawski Dan Poltawski
              Tester:
              Rajesh Taneja Rajesh Taneja
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Jan/17