Commit 4baadd23 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1749836: Show 'Deleted user' author without link on Legal admin page



behatnotneeded

Change-Id: Ic3dd651ba70d0583b02fbbf7507ad8afca4761ed
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 9837f182
......@@ -34,6 +34,7 @@ foreach ($data as $key => $content) {
array_push($latestVersions, $key);
}
$content->displayname = display_name($content->userid, null, true);
$content->userdeleted = get_field('usr', 'deleted', 'id', $content->userid);
}
$selectedtab = $fs;
......
......@@ -69,6 +69,7 @@ if ($privacies) {
array_push($types, $content->type);
}
$content->displayname = display_name($content->userid, null, true);
$content->userdeleted = get_field('usr', 'deleted', 'id', $content->userid);
}
}
// Add 0 to $latestVersions, to allow the creation of a first privacy/T&C
......
<tr>
<td>{$result->version}</td>
<td>{if $result->userid == '0'}
<td>{if $result->userid == '0' || $result->userdeleted == '1'}
{$result->displayname}
{else}
<a href="{$WWWROOT}user/view.php?id={$result->userid}">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment