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

Single activity format dropdown from types of activity empty

XMLWordPrintable

    • Moppies Kanban

      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.

            cescobedo Carlos Escobedo
            lebl Sascha
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.