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