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

Database activity menu won't display zero value - inconsistency

XMLWordPrintable

    • MOODLE_24_STABLE, MOODLE_27_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • Hide

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

      Show
      Use a value like 'empty/none' instead of 0
    • 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"

      (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.

            bostelm Henning Bostelmann
            gordonmc Gordon McLeod
            Ankit Agarwal Ankit Agarwal
            Dan Poltawski Dan Poltawski
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.