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.

Activity

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 ? )

Petr Kalis
added a comment - 27/Nov/07 7:40 PM 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 ? )

Dan Poltawski
added a comment - 13/Dec/07 10:31 PM 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)

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

Petr Skoda
added a comment - 15/Dec/07 9:08 PM - 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