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

Hardfreeze should ignore submited data

XMLWordPrintable

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

      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.

            rwijaya Rossiani Wijaya
            ankit_frenz Ankit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.