Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-7021

Questionnaire displays activity name without applying multi-language filter in the intro page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.3.2
    • Component/s: Module: Questionnaire
    • Labels:
      None

      Description

      From https://tracker.moodle.org/browse/CONTRIB-5576?focusedCommentId=476138&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-476138

      Questionnaire displays activity name without applying multi-language filter in the intro page (mod/questionnaire/view.php?id=) using Questionnaire version 2017050101.

      Eg. like this:
      <span lang="en" class="multilang">Satisfaction Questionnaire</span><span lang="de" class="multilang">Zufriedenheitsbogen</span><span lang="fr" class="multilang">Questionnaire de satisfaction</span>

      I changed this on line 51 in view.php:
      $questionnaire->page->add_to_page('questionnairename', clean_text($questionnaire->name));
      to this:
      $questionnaire->page->add_to_page('questionnairename', format_string($questionnaire->name));

      So now I  am using format_string instead of clean_text and it works fine for me now.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchurch Mike Churchward
                Reporter:
                mchurch Mike Churchward
                Participants:
                Component watchers:
                Mike Churchward
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Sep/17