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

showadvanced/shortforms JS should be more tolerant of non-existent fields

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      Hide
      • Open a form which actively uses the new shortforms code (e.g. new Multichoice quiz question)
      • Ensure that all of the form elements can be opened and closed
      • Ensure that the Show more/Show less links work as expected
      Show
      Open a form which actively uses the new shortforms code (e.g. new Multichoice quiz question) Ensure that all of the form elements can be opened and closed Ensure that the Show more/Show less links work as expected
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull Master Branch:

      Description

      We should not break subsequent JS on the page if there's an issue with a form element.
      This is highlighted by MDL-37932.

      This issue also fixes an issue where Y.one is called as a new object rather than a static method.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/13