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

On creating a new course, course creators cannot change availability. Default value does not honor course default settings.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.2.5, 2.3.2
    • Component/s: Course, Roles / Access
    • Labels:
      None
    • Testing Instructions:
      Hide

      1/ create some course creator user
      2/ set course visibility default to "available to students"
      3/ logins as the creator and create course
      4/ it is expected the new course availability matches the
      default
      5/ flip the visibility default and retry creating other course

      Show
      1/ create some course creator user 2/ set course visibility default to "available to students" 3/ logins as the creator and create course 4/ it is expected the new course availability matches the default 5/ flip the visibility default and retry creating other course
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w28_MDL-34155_m24_visibilitydefault

      Description

      We have an upgraded installation from 1.9, with per-category course creator roles. If these course creators try to create new courses with an url like this (https://moodleurl/course/edit.php?category=18&returnto=category), the Availability field only displays "This course is available to students", there's no drop-down box at all. Our default setting for new courses is "Not available for students".

      If they go on creating the course, they can later change availability from the settings, but initially it stays open.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            hwileniu Heikki Wilenius added a comment -

            Maybe related to this bug?

            Show
            hwileniu Heikki Wilenius added a comment - Maybe related to this bug?
            Hide
            skodak Petr Skoda added a comment -

            Hello,

            1/ the course creators settings may be restricted ebcause they gain the appropriate role that allows them to modify course settings only after the course is created.

            2/ if the default settings are not use then it is a bug.

            Thanks for the report.

            Show
            skodak Petr Skoda added a comment - Hello, 1/ the course creators settings may be restricted ebcause they gain the appropriate role that allows them to modify course settings only after the course is created. 2/ if the default settings are not use then it is a bug. Thanks for the report.
            Hide
            skodak Petr Skoda added a comment -

            Thanks a lot for the report, previously the default was actually using category visibility, but that was not even working correctly because it did not match the selected category at the top, so I switched to the course visibility default only.

            To Integrators, feel free to cherry pick to any stable branch you see appropriate.

            Show
            skodak Petr Skoda added a comment - Thanks a lot for the report, previously the default was actually using category visibility, but that was not even working correctly because it did not match the selected category at the top, so I switched to the course visibility default only. To Integrators, feel free to cherry pick to any stable branch you see appropriate.
            Hide
            samhemelryk Sam Hemelryk added a comment -

            Thanks Petr, this has been integrated now

            Show
            samhemelryk Sam Hemelryk added a comment - Thanks Petr, this has been integrated now
            Hide
            abgreeve Adrian Greeve added a comment -

            I tested this in master and master integration. The default setting "available to students" now works properly.
            Test passed

            Show
            abgreeve Adrian Greeve added a comment - I tested this in master and master integration. The default setting "available to students" now works properly. Test passed
            Hide
            poltawski Dan Poltawski added a comment -

            Congratulations!

            You've made it into the weekly release!

            Thanks for your contribution - here are some random drummers to keep you inspired for the next week!
            http://www.youtube.com/watch?v=_QhpHUmVCmY

            Show
            poltawski Dan Poltawski added a comment - Congratulations! You've made it into the weekly release! Thanks for your contribution - here are some random drummers to keep you inspired for the next week! http://www.youtube.com/watch?v=_QhpHUmVCmY

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Sep/12