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

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

    XMLWordPrintable

    Details

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      m29_MDL-46467

      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

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Mar/15