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

Course News forum language incorrectly determined by user language settings



    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.4.3
    • None
    • Course, Forum, Language


      When a new Moodle course is generated, the language of the title and description of the News forum are erroneously determined (and permanently set) by the language preferences of the first user to visit the page, as opposed to the language settings of the course itself.

      Steps to reproduce:

      1. Create a test user
      2. As an administrator, create new course and enroll test user (but do not actually view the course page as the admin yet)
      3. Log in as test user, select a language other than the site default from the upper right hand corner language drop down menu
      4. As test user, navigate to the course. The course and News forum will appear in the language specified in the drop down (which is proper behavior at this point)
      5. Log out as test user, browse to the test course as admin user with language set to site default. Note that the title and description of the News forum are written in whatever language the test user had enabled when they visited the page.

      For debugging purposes, if you examine the timemodified field of the specific forum entry in the mdl_forum relation, you'll notice this is exactly equivalent to the time the first user visited the page. This is because the News forum is lazily generated upon the first course page view as opposed to at the time of course creation.


        Issue Links



              Unassigned Unassigned
              mdomingues Michael Domingues
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona), Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              1 Vote for this issue
              4 Start watching this issue