Use api_get_person_name to show users fullname in assignments tool #1653

remotes/angel/1.11.x
Angel Fernando Quiroz Campos 8 years ago
parent ac51a1345c
commit ab442aa16e
  1. 7
      main/work/work.lib.php

@ -1931,7 +1931,8 @@ function get_work_user_list(
qualification, qualification,
weight, weight,
allow_text_assignment, allow_text_assignment,
CONCAT (u.firstname," ",u.lastname) as fullname, u.firstname,
u.lastname,
u.username, u.username,
parent_id, parent_id,
accepted, accepted,
@ -2039,7 +2040,9 @@ function get_work_user_list(
($is_allowed_to_edit || api_is_drh()) ($is_allowed_to_edit || api_is_drh())
) { ) {
// Firstname, lastname, username // Firstname, lastname, username
$work['fullname'] = Display::div($work['fullname'], array('class' => 'work-name')); $work['fullname'] = Display::div(
api_get_person_name($work['firstname'], $work['lastname']), ['class' => 'work-name']
);
$work['title_clean'] = $work['title']; $work['title_clean'] = $work['title'];
if (strlen($work['title']) > 30) { if (strlen($work['title']) > 30) {

Loading…
Cancel
Save