Reporting: Fix admin view for coaches and users

pull/3991/head
Angel Fernando Quiroz Campos 4 years ago
parent 36091f0703
commit 1d92a28def
  1. 14
      public/main/inc/lib/myspace.lib.php
  2. 1
      public/main/template/default/my_space/user_summary.html.twig

@ -427,7 +427,7 @@ class MySpace
$tpl = new Template('', false, false, false, false, false, false);
$tpl->assign('table', $tableContent);
$templateName = $tpl->get_template('my_space/user_summary.tpl');
$tpl->display($templateName);
echo $tpl->fetch($templateName);
}
/**
@ -471,7 +471,7 @@ class MySpace
}
$table = new SortableTable(
'tracking_list_coaches_myspace',
['MySpace', 'count_coaches'],
null,
null,
($is_western_name_order xor $sort_by_first_name) ? 1 : 0
);
@ -670,16 +670,6 @@ class MySpace
$table->display();
}
/**
* @return mixed
*/
public static function count_coaches()
{
global $total_no_coaches;
return $total_no_coaches;
}
public static function sort_users($a, $b)
{
$tracking = Session::read('tracking_column', 0);

@ -1,4 +1,3 @@
{% extends "@ChamiloCore/Layout/layout_one_col.html.twig" %}
{% block content %}
{% autoescape false %}

Loading…
Cancel
Save