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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 2.8
    • None
    • Forms Library
    • MOODLE_28_STABLE
    • Hide

      Use checkbox instead of advcheckbox.

      Show
      Use checkbox instead of advcheckbox.

    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

              Unassigned Unassigned
              damyon Damyon Wiese
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: