Skip to content

Commit f1b8439

Browse files
committed
User: Account unification: add registration date column - refs BT#22702
1 parent 3c69686 commit f1b8439

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

main/inc/lib/myspace.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4748,7 +4748,7 @@ public static function duGetUsersByFieldValue(int $fieldId, int $urlId, string $
47484748
$tblRel = Database::get_main_table(TABLE_MAIN_ACCESS_URL_REL_USER);
47494749
$valueSql = "'".Database::escape_string($value)."'";
47504750

4751-
$sql = "SELECT DISTINCT u.id AS user_id, u.username, u.firstname, u.lastname, u.email
4751+
$sql = "SELECT DISTINCT u.id AS user_id, u.username, u.firstname, u.lastname, u.email, u.registration_date
47524752
FROM $tblUser u
47534753
JOIN $tblRel r ON r.user_id = u.id AND r.access_url_id = $urlId
47544754
JOIN $tblVals v ON v.item_id = u.id AND v.field_id = $fieldId

main/mySpace/duplicated_users.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@
210210
echo " <th>".get_lang('LastName')."</th>";
211211
echo " <th>".get_lang('Email')."</th>";
212212
echo " <th>".get_lang('UserId')."</th>";
213+
echo " <th>".get_lang('RegistrationDate')."</th>";
213214
echo " <th class='text-center'>".get_lang('UnifyToThisUser')."</th>";
214215
echo "</tr></thead><tbody>";
215216

@@ -222,6 +223,7 @@
222223
echo " <td>".htmlspecialchars($u['lastname'])."</td>";
223224
echo " <td>".htmlspecialchars($u['email'])."</td>";
224225
echo " <td>".$uid."</td>";
226+
echo " <td>".htmlspecialchars($u['registration_date'])."</td>";
225227
echo " <td class='text-center'>";
226228
echo " <button type='button' class='btn btn-xs btn-danger'".
227229
" data-toggle='modal' data-target='#confirmUnify'".

0 commit comments

Comments
 (0)