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

Formslib creating multiple divs with same id.

XMLWordPrintable

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

      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>

            Unassigned Unassigned
            anthonyforth Anthony Forth (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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