Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-20138 - convert &amp to ampersand symbol in Grades tooltip (for s…

…imple and full view).
  • Loading branch information...
commit b285c5aa42ea69ec6af5ddf7205920325aafa7ba 1 parent b4a3af7
Rossiani Wijaya authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 grade/lib.php
View
4 grade/lib.php
@@ -1153,7 +1153,7 @@ public function get_params_for_iconstr($element) {
return $strparams;
}
- $strparams->itemname = $element['object']->get_name();
+ $strparams->itemname = html_to_text($element['object']->get_name());
// If element name is categorytotal, get the name of the parent category
if ($strparams->itemname == get_string('categorytotal', 'grades')) {
@@ -1197,7 +1197,7 @@ public function get_edit_icon($element, $gpr) {
}
$strparams = $this->get_params_for_iconstr($element);
-
+
$object = $element['object'];
switch ($element['type']) {
Please sign in to comment.
Something went wrong with that request. Please try again.