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

moodleform_mod.php: Common Modules Settings is hidden if previous section contains an "Advanced" element

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: Forms Library
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      On an activity module form, the elements in the "Common Module Settings" section will be hidden if the preceding section has an "Advanced" element. Usually this is not what is expected or required.

      Therefore, please could we change the "standard_coursemodule_elements" function, so that is adds a label to the "Common Module Settings" section.

      1. locate the "standard_coursemodule_elements" function
      in "course/moodleform_mod.php" (around line 66):

      2. change OLD line
      $mform->addElement('header', '', get_string('modstandardels', 'form'));

      to NEW line
      $mform->addElement('header', 'coursemodule_elements', get_string('modstandardels', 'form'));

      much obliged
      Gordon

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jamiesensei Jamie Pratt
                Reporter:
                xxxxxxx Gordon Bateson
                Tester:
                Nobody
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: