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

Single activity format dropdown from types of activity empty

    XMLWordPrintable

    Details

    • Sprint:
      Moodle 3.9 - Moppies Kanban

      Description

      There is a problem with the single activity format.
      If a person is enrolled in the course as a teacher and then the course format is set to Single Activity format in the settings, then after a short reload of the page an empty drop down box is displayed at type of activity.

      Now I can save the activity and then the default value is taken and after saving I can create the activity.
      And when I open the course settings afterwards, the type of activity is displayed.

      If I do the same as an administrator or manager who has the role of manager (system roles) in Moodle, then everything will be displayed correctly and the user can select the type.

      I have tested this behaviour on the Moodle sandbox and it is the same here.

      Steps to reproduction:
      1. create course
      2. open course
      3. enroll a normal user as a teacher in the course
      4. login as previously enrolled user
      5. open course setting
      6. select the setting Single activity format on course format
      Now the dropdown type of activity is empty

      8. save the course
      9. the activity to be created should now open
      10. create and save activity
      11. open course settings
      Now the dropdown is no longer empty and the types of activity can be selected.

       

      The problem would be caused by this commit:
      https://github.com/moodle/moodle/commit/b70e27f531586a64e86efbc283a420c6959dc822#diff-9dfd4a45ba213e76a84b07a45185800f

      If I would revert this one, then everything would work as expected.

        Attachments

          Activity

            People

            Assignee:
            cescobedo Carlos Escobedo
            Reporter:
            lebl Sascha
            Peer reviewer:
            Sara Arjona (@sarjona)
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            CiBoT
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/May/20

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 41 minutes
                3h 41m