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

Choice module renderer display_options closes UL twice

XMLWordPrintable

    • 1
    • HQ 2025 Sprint I1.4 Moppies

      In display options, an UL list is opened right after the form tag :

              $html = html_writer::start_tag('form', $attributes);
              $html .= html_writer::start_tag('ul', array('class' => 'choices list-unstyled unstyled'));

      closed just before adding a clearfloat div :

              $html .= html_writer::tag('li','', array('class'=>'clearfloat'));
              $html .= html_writer::end_tag('ul');

      But additionally closed again at end before closing the form :

              $html .= html_writer::end_tag('ul');
              $html .= html_writer::end_tag('form');

      Removing last closing occurrence make things fine.

            amaia Amaia Anabitarte
            vf Valery Fremaux
            Carlos Escobedo Carlos Escobedo
            Ferran Recio Ferran Recio
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 11 minutes
                11m

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