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

two notices diplayed adding a new instance of a non core module

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      Download http://download.moodle.org/plugins/mod/NEWMODULE.zip.
      Change NEWMODULE to WIZARD and newmodule to wizard.
      Install and go to add a new instance of wizard.
      you will get two notices
      undefined variable introeditor in course/modedit.php at line 430 and 432.

      Fix (found by David):
      change line 401 of moodle20/course/modedit.php
      from
      if (plugin_supports('mod', $fromform->modulename, FEATURE_MOD_INTRO, false)) {
      to
      if (plugin_supports('mod', $fromform->modulename, FEATURE_MOD_INTRO, true)) {

      Thanks David.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: