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

Store form change state in a different js variable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Forms Library
    • Labels:
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      As DanP pointed out in his comments on MDL-31655, M.cfg may not be the best place for storing the state information of form changes.
      I'm not aware of another suitably named variable in the JS namespace, so if we were to update the existing code from MDL-31315, MDL-31655, and MDL-31673 then we'd need a variable for this such as statedata:

      M.statedata = M.statedata || {};

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: