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

$mform->hardFreeze() does not seem to work for advcheckboxes used in an array

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8
    • Fix Version/s: BACKEND
    • Component/s: Forms Library
    • Labels:
    • Workaround:
      Hide

      Use checkbox instead of advcheckbox.

      Show
      Use checkbox instead of advcheckbox.
    • Affected Branches:
      MOODLE_28_STABLE

      Description

      See: MDL-48047

      We changed from advcheckbox to checkbox and it fixed our problem, but we did not find out what is wrong with advcheckbox.

      The symptoms were that for form element 'abc[0]' calling setDefault('abc[0]', false) hardFreeze('abc[0]') resulted in getData returning abc[0] = 1 (sorry - if that's confusing).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              damyon Damyon Wiese
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: