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

Hardfreeze should ignore submited data

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Not a bug
    • 2.1.5, 2.2.2
    • None
    • Forms Library
    • MOODLE_21_STABLE, MOODLE_22_STABLE

    Description

      When we hardfreeze an element, and even use a set default value. Still an user can add a hidden element with the same name and submit the value. In this case the default value should be used not the submitted value.

      The funtion that returns the value to mform is $element->getvalue ,which simply returns the data associated with the value attribute.
      That is we are updating the value attribute of the element if data is submited, which should not be done incase the element is hardfrozen

      Rajesh will be commenting with further details.

      Attachments

        Issue Links

          Activity

            People

              rwijaya Rossiani Wijaya
              ankit_frenz Ankit Agarwal
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: