';
- $content_orig_A='
| '.get_lang('AssignmentDesc').' |
'.$photo.' '.api_get_person_name($userinfo['firstname'], $userinfo['lastname']).' |
';
+ $content_orig_A='
| '.get_lang('AssignmentDesc').' |
'.$photo.' '.api_get_person_name($userinfo['firstname'], $userinfo['lastname']).' ('.$userinfo['username'].') |
';
$content_orig_B='
'.get_lang('AssignmentDescription').': '.$title_orig.'
'.$_POST['content'];
@@ -1905,7 +1905,7 @@ function auto_add_page_users($assignment_type) {
$image_path = UserManager::get_user_picture_path_by_id($assig_user_id,'web',false, true);
$image_repository = $image_path['dir'];
$existing_image = $image_path['file'];
- $name = api_get_person_name($o_user_to_add['firstname'], $o_user_to_add['lastname']);
+ $name = api_get_person_name($o_user_to_add['firstname'], $o_user_to_add['lastname']).' ('.$o_user_to_add['username'].')';
$photo= '

';
$is_tutor_of_group = GroupManager :: is_tutor_of_group($assig_user_id,$_clean['group_id']); //student is tutor
@@ -1935,7 +1935,7 @@ function auto_add_page_users($assignment_type) {
$_POST['content']='
| '.get_lang('AssignmentWork').' |
'.$photo.' '.$name.' |
[['.$link2teacher.' | '.get_lang('AssignmentLinktoTeacherPage').']] '; //If $content_orig_B is added here, the task written by the professor was copied to the page of each student. TODO: config options
//AssignmentLinktoTeacherPage
- $all_students_pages[] = '
'.strtoupper($o_user_to_add['lastname']).', '.$o_user_to_add['firstname'].' [['.$_POST['title']."_uass".$assig_user_id.' | '.$photo.']] '.$status_in_group.''; //don't change this line without guaranteeing that users will be ordered by last names in the following format (surname, name)
+ $all_students_pages[] = '
'.strtoupper($o_user_to_add['lastname']).', '.$o_user_to_add['firstname'].' ('.$o_user_to_add['username'].') [['.$_POST['title']."_uass".$assig_user_id.' | '.$photo.']] '.$status_in_group.''; //don't change this line without guaranteeing that users will be ordered by last names in the following format (surname, name)
//$all_students_pages[] = '
| '.api_get_person_name($o_user_to_add['lastname'], $o_user_to_add['firstname']).' | [['.$_POST['title']."_uass".$assig_user_id.' | '.$photo.']] '.$status_in_group.' |
';
@@ -1947,7 +1947,6 @@ function auto_add_page_users($assignment_type) {
}//end foreach for each user
-
foreach($a_users_to_add as $user_id=>$o_user_to_add)
{