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

Trying to enable restricted modules in existing course, notices and warnings and nothing saved

    XMLWordPrintable

    Details

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

      Description

      Steps to reproduce:

      • create course
      • enable "restrictmodules" in all courses.
      • go to course->settings
      • select "restrict modules in this course"
      • select any number of modules.
      • save settings

      Results:

      • nothing is saved in course_allowed_modules table
      • output:

      Notice: Undefined variable: allowedmods in /course/lib.php on line 3595
      Call Stack
      #	Time	Memory	Function	Location
      1	0.0001	122160	{main}( )	../edit.php:0
      2	0.2217	9339208	update_course( )	../edit.php:122
       
       
      Warning: Invalid argument supplied for foreach() in /course/lib.php on line 3035
      Call Stack
      #	Time	Memory	Function	Location
      1	0.0001	122160	{main}( )	../edit.php:0
      2	0.2217	9339208	update_course( )	../edit.php:122
      3	0.2312	9443104	update_restricted_mods( )	../lib.php:3595

      Ciao

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            stronk7 Eloy Lafuente (stronk7)
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10