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

Options in Dropdown menu under course custom field change when inserting a new option between existing options.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.7.8, 3.8.5, 3.9.2
    • Fix Version/s: None
    • Component/s: Course
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      When inserting a new option in dropdown menu before the last option, courses changes values in the dropdown menu custom field.When inserting a new option in dropdown menu before the last option, courses changes values in the dropdown menu custom field.

      1. Go to /course/customfield.php
      2. Click the button "Add a new category"
      3. Click "Add a new custom field" in "Other fields".
      4. Select "Dropdown menu".
      5. Give it a name and short name.
          5.1 Give it a name "Test 1".
          5.2 Give it a short name "test_1".
      6. Add two items in "Menu options" under "Dropdown menu field settings".
          6.1 Add "Option 1" and "Option 2".
      7. Save changes.
      8. Go to /course
      9. Click "Add a new course".
      10. Give it a full name and short name.
          10.1 Give it full name "Test course 1"
          10.2 Give it short name "Test course 1"
      11. Expand section "Other fields".
      12. Select "Option 2" in "Test 1" dropdown menu.
      13. Save and return.
      14. Go back to /course/customfield.php
      15. Edit "Test 1" custom field.
      16. Add new value to the "Menu options" between "Option 1" and "Option 2".
          16.1 Name it "Option 3".
      17. Save changes.
      18. Go back to /course
      19. Search for "Test course 1" and go to the course that you created.
      20. Click the cogwheel and select "Edit settings".
      21. Expand section "Other fields".
      22. Dropdown menu is now set to "Option 3" and not the "Option 2" as expected.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              smo@praxis.dk Sam Møller
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated: