When showin user profile extra data we show only extra data that is marked with the filter = on

skala
Julio Montoya 14 years ago
parent 4584ba134e
commit 1212769a73
  1. 6
      main/inc/lib/tracking.lib.php
  2. 12
      main/tracking/courseLog.php

@ -2960,13 +2960,13 @@ class TrackingCourseLog {
$return = '<form action="courseLog.php" method="get" name="additional_profile_field_form" id="additional_profile_field_form">';
// the select field with the additional user profile fields (= this is where we select the field of which we want to see
// the information the users have entered or selected.
// the information the users have entered or selected.
$return .= '<select name="additional_profile_field">';
$return .= '<option value="-">'.get_lang('SelectFieldToAdd').'</option>';
foreach ($extra_fields as $key=>$field) {
// show only extra fields that are visible, added by J.Montoya
if ($field[6]==1) {
// show only extra fields that are visible + and can be filtered, added by J.Montoya
if ($field[6]==1 && $field[8] == 1) {
if ($field[0] == $_GET['additional_profile_field'] ) {
$selected = 'selected="selected"';
} else {

@ -456,18 +456,16 @@ if ($_GET['studentlist'] == 'false') {
$course_info = api_get_course_info(api_get_course_id());
$course_name = get_lang('Course').' '.$course_info['name'];
if (api_get_session_id()) {
echo '<h2>'.get_lang('Session').' '.api_get_session_name(api_get_session_id()).' | '.$course_name.'</h2>';
} else {
echo '<h2>'.get_lang('Course').' '.$course_info['name'].'</h2>';
}
echo TrackingCourseLog::display_additional_profile_fields();
}
$extra_field_select = TrackingCourseLog::display_additional_profile_fields();
if (!empty($extra_field_select)) {
echo $extra_field_select;
}
$form -> display();
// END : form to remind inactives susers

Loading…
Cancel
Save