Moodle
  1. Moodle
  2. MDL-11800

Multilang tags do not work in the description field when creating a new course category.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9, 2.0
    • Component/s: Administration
    • Labels:
      None
    • Environment:
      Mac OS 10.4.10, Firefox 2.0.0.7, Apple MacBook 2.16 Ghz Intel Core 2 duo
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Rank:
      30057

      Description

      On the Course Categories page (course/index.php?categoryedit=on) when creating multilingual content in the description field for a new category, the Multilang tags do not remain when submitting/creating the new course category.

        Issue Links

          Activity

          Hide
          Petr Kalis added a comment -

          See attached patch.
          There also was a bug in $navigation, when the category name was using multilang filter, it was displayed wrong in navbar and in the <title> area
          (Can i get +1 to resolved - in case the patch is correct and +1 to bugs found ? )

          Show
          Petr Kalis added a comment - See attached patch. There also was a bug in $navigation, when the category name was using multilang filter, it was displayed wrong in navbar and in the <title> area (Can i get +1 to resolved - in case the patch is correct and +1 to bugs found ? )
          Hide
          Yu Zhang added a comment -

          Thanks for the report and patch, fixed in 1.9 and HEAD.

          Show
          Yu Zhang added a comment - Thanks for the report and patch, fixed in 1.9 and HEAD.
          Hide
          Dan Poltawski added a comment -

          Hi, Reopening this.

          Now when in non-editing mode on a course category sub-category page with other fitlers enabled we get a load of junk in the <title> tags (see atttached issue for screenshot)

          Show
          Dan Poltawski added a comment - Hi, Reopening this. Now when in non-editing mode on a course category sub-category page with other fitlers enabled we get a load of junk in the <title> tags (see atttached issue for screenshot)
          Hide
          Petr Škoda added a comment - - edited

          1/ please watch out for trailing whitespace
          2/ please use one space after ,
          3/ use format_string() for names instead of format_text
          4/ if field does not have type associated use FORMAT_MOODLE not FORMAT_HTML
          5/ I do not think is should be recommended to alter name property of $category directly, because it might be used later and it would not match the data in db

          edit:
          the MDL-12566 was cause by incorrect format_text(), format_string() uses only multilang filter by default

          Show
          Petr Škoda added a comment - - edited 1/ please watch out for trailing whitespace 2/ please use one space after , 3/ use format_string() for names instead of format_text 4/ if field does not have type associated use FORMAT_MOODLE not FORMAT_HTML 5/ I do not think is should be recommended to alter name property of $category directly, because it might be used later and it would not match the data in db edit: the MDL-12566 was cause by incorrect format_text(), format_string() uses only multilang filter by default

            People

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

              Dates

              • Created:
                Updated:
                Resolved: