From 0b8c614191da2ba191c5c83db741d9fdbb409a40 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 11 Mar 2023 22:07:00 +0100 Subject: [PATCH] Manage{Assets,Tags}: link user names to edituser --- controllers/ManageAssets.php | 5 +++-- controllers/ManageTags.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/controllers/ManageAssets.php b/controllers/ManageAssets.php index 499b3c1..2c2bfdc 100644 --- a/controllers/ManageAssets.php +++ b/controllers/ManageAssets.php @@ -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('%s', BASEURL, $row['id_user'], + $row['first_name'] . ' ' . $row['surname']); else return 'n/a'; }, diff --git a/controllers/ManageTags.php b/controllers/ManageTags.php index cb1ffd2..ec12de0 100644 --- a/controllers/ManageTags.php +++ b/controllers/ManageTags.php @@ -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('%s', BASEURL, $row['id_user'], + $row['first_name'] . ' ' . $row['surname']); else return 'n/a'; },