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

Form remove option logic is incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.1
    • Component/s: Forms Library
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      When I remove an option from a select form element after the default values have been set, my default value is removed even though it does not match the one I just removed. I'm removing the option in definition_after_data().

      See attached diff for the fix.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            bushido Mark Nielsen
            Tester:
            Nobody Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jun/07