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

mform groups not belonging to a fieldset display badly in core themes whose parent is Canvas

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.4, 2.1.1
    • 2.0.3
    • Themes
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MDL-27989_master
    • Hide

      this issue will be fixed if browsing the attached zip file, each mform element will be well drawn. I added few mform elements to the first release if test.zip in order to evaluate label vertical alignment too.

      Show
      this issue will be fixed if browsing the attached zip file, each mform element will be well drawn. I added few mform elements to the first release if test.zip in order to evaluate label vertical alignment too.

      by adding a group to a moodleform with $mform->addGroup
      if the group is not contained in a fieldset, its position in the form is strongly on the right in formal_white.

      I am sorry, but I noticed this issue by coding!
      I did not find any other instance in moodle core of this situation so... the only way to test this bug is to add to a moodleform BEFORE an 'header 'a code like:

      $option = array('a label');
                  
      $elementgroup = array();
      $elementgroup[] =& $mform->createElement('select', 'aaa', '', $option);
      $elementgroup[] =& $mform->createElement('text', 'bbb', '');
      $mform->addGroup($elementgroup, 'group', 'one more label', ' ', false);

      and call the modified form from moodle.

            daniss Daniele Cordella
            daniss Daniele Cordella
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Sam Hemelryk Sam Hemelryk
            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.