Commit e9de7982 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove firstname,lastname,email from user search results

parent 266fa82f
......@@ -61,7 +61,8 @@ $string['jabberusername'] = 'Jabber Username';
$string['occupation'] = 'Occupation';
$string['industry'] = 'Industry';
// Field names for view user display
// Field names for view user and search user display
$string['name'] = 'Name';
$string['principalemailaddress'] = 'Principal email';
$string['emailaddress'] = 'Alternative email';
......
......@@ -16,10 +16,7 @@
<table id="searchresults">
<thead>
<tr>
<th>{str section=artefact.internal tag="preferredname"}</th>
<th>{str section=artefact.internal tag="firstname"}</th>
<th>{str section=artefact.internal tag="lastname"}</th>
<th>{str section=artefact.internal tag="email"}</th>
<th>{str section=artefact.internal tag="name"}</th>
</tr>
</thead>
<tbody>
......
......@@ -45,6 +45,9 @@ if (!empty($data['results'])) {
foreach ($data['results'] as &$result) {
$result['displayname'] = display_name($result);
unset($result['username']);
unset($result['firstname']);
unset($result['lastname']);
unset($result['email']);
unset($result['preferredname']);
}
}
......
......@@ -67,9 +67,6 @@ var results = new TableRenderer(
'results.json.php',
[
function(r) { return TD(null,A({'href':'view.php?id=' + r.id},r.displayname)); },
'firstname',
'lastname',
'email',
]
);
......
Markdown is supported
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