Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
e9de7982
Commit
e9de7982
authored
Nov 21, 2006
by
Richard Mansfield
Browse files
Remove firstname,lastname,email from user search results
parent
266fa82f
Changes
4
Show whitespace changes
Inline
Side-by-side
htdocs/artefact/internal/lang/en.utf8/artefact.internal.php
View file @
e9de7982
...
...
@@ -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'
;
...
...
htdocs/theme/default/templates/user/search.tpl
View file @
e9de7982
...
...
@@ -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>
...
...
htdocs/user/results.json.php
View file @
e9de7982
...
...
@@ -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'
]);
}
}
...
...
htdocs/user/search.php
View file @
e9de7982
...
...
@@ -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',
]
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment