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

Block Course completion: in the "more details" page of this block students doesn't see properly "Yes" in the "Completed" field when they are using another language, different than English

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.4, 2.1.1
    • Component/s: Blocks
    • Labels:
      None
    • Environment:
      Applicable for all environments
    • Testing Instructions:
      Hide

      1/ Use a non-english language
      2/ Enable course compeltion for a course
      3/ Add the compeition status block
      4/ Look at the 'more details' page of course compeition
      5/ Notice the english 'yes/no' strings

      Show
      1/ Use a non-english language 2/ Enable course compeltion for a course 3/ Add the compeition status block 4/ Look at the 'more details' page of course compeition 5/ Notice the english 'yes/no' strings
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      The bug is located in the Course completion block

      In the "more details" page of this block students doesn't see properly "Yes" in the "Completed" field when they are using another language, different than English (i.e. Spanish).

      The problem is in the code of the "blocks/completionstatus/details.php" file, in line 235. Just make the next change to let this bug closed:
      WRONG file shows:
      echo ($row['status'] === 'Yes') ? 'Yes' : 'No';
      RIGHT file shows:
      echo ($row['status'] === get_string('yes')) ? get_string('yes') : get_string('no');

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  1/Aug/11