Manage{Assets,Tags}: link user names to edituser

This commit is contained in:
Aaron van Geffen 2023-03-11 22:07:00 +01:00
parent e916489d00
commit 0b8c614191
2 changed files with 6 additions and 4 deletions

View File

@ -71,8 +71,9 @@ class ManageAssets extends HTMLController
'parse' => [
'type' => 'function',
'data' => function($row) {
if (!empty($row['first_name']))
return $row['first_name'] . ' ' . $row['surname'];
if (!empty($row['id_user']))
return sprintf('<a href="%s/edituser/?id=%d">%s</a>', BASEURL, $row['id_user'],
$row['first_name'] . ' ' . $row['surname']);
else
return 'n/a';
},

View File

@ -56,8 +56,9 @@ class ManageTags extends HTMLController
'parse' => [
'type' => 'function',
'data' => function($row) {
if (!empty($row['first_name']))
return $row['first_name'] . ' ' . $row['surname'];
if (!empty($row['id_user']))
return sprintf('<a href="%s/edituser/?id=%d">%s</a>', BASEURL, $row['id_user'],
$row['first_name'] . ' ' . $row['surname']);
else
return 'n/a';
},