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

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

XMLWordPrintable

    • 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.

      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

            brianb Brian Barnes
            brianb Brian Barnes
            John Okely John Okely
            Andrew Lyons Andrew Lyons
            Marina Glancy Marina Glancy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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