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

$mform->hardfreeze causes labels to loose their for HTML attribute

    XMLWordPrintable

Details

    • MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • m29_MDL-46467
    • Hide

      Wherever there is a form element that has been hardfrozen (by calling $mform->hardFreeze() control (I used the "Standard scale" field when creating a grade scale), confirm using your favourite firebug clone that the label is attached to the disabled from element.

      Show
      Wherever there is a form element that has been hardfrozen (by calling $mform->hardFreeze() control (I used the "Standard scale" field when creating a grade scale), confirm using your favourite firebug clone that the label is attached to the disabled from element.

    Description

      When using hardfreeze on a form, the labels for the frozen elements no longer link to the input elements that they are associated to.

      One location that I have found this in core moodle is when you create a grade scale, the "Standard Scale" label does not point to the frozen checkbox

      Attachments

        Issue Links

          Activity

            People

              brianb Brian Barnes
              brianb Brian Barnes
              John Okely John Okely
              Andrew Lyons Andrew Lyons
              Marina Glancy Marina Glancy
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Mar/15