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

User list actions does not maintain the course language

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.5
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: Course, Messages
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a course with language and/or theme different from site default
      2. Open Participants page, select several users and select "send message"
      3. Make sure the page is displayed with course language/theme
      4. Try sending a bulk message to site participants (as a user with appropriate permission but not admin), make sure there are no errors there
      Show
      Create a course with language and/or theme different from site default Open Participants page, select several users and select "send message" Make sure the page is displayed with course language/theme Try sending a bulk message to site participants (as a user with appropriate permission but not admin), make sure there are no errors there
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull Master Branch:
      wip-MDL-41317-master
    • Sprint:
      BACKEND Sprint 4

      Description

      Steps to reproduce:

      • Set a course language to English.
      • Set a user language to Portuguese (or any other language).
      • Assign this user as a teacher for this course.
      • In the course select the user list .
      • Choose any action.could it be "Send a message to selected users".
      • The message screen will have the user language and not the course language.

      We add these two lines in the user/action_redir.php file and now the course language is presented .

      //CUSTOM CODE.
      $courselang = $DB->get_field('course','lang',array('id'=>$id));
      $SESSION->lang = $courselang;

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                marina Marina Glancy
                Reporter:
                amrigo Angelo Rigo
                Peer reviewer:
                Petr Skoda
                Integrator:
                Dan Poltawski
                Tester:
                Adrian Greeve
                Participants:
                Component watchers:
                Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Sep/13