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

Formslib creating multiple divs with same id.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.2.3
    • None
    • Forms Library
    • MOODLE_22_STABLE

    Description

      I have a screen with multiple forms on it. Line 2351 in lib/formslib.php appears to be always using an id from the first form.

      Example of the output I am seeing (where 1989_notecontent544 is the id of the element from the first form) -

      <div id="fitem_1989_notecontent544" class="fitem fitem_ftextarea"><div class="fitemtitle"><label for="n_1990_notecontent511">Enter note text number 1990 </label></div><div class="felement ftextarea"><textarea id="n_1990_notecontent511" rows="5" cols="20" disabled="disabled" class="studyplan-hide-element" name="notecontent"></textarea></div></div>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              anthonyforth Anthony Forth
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: