Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
realname
Commits
00e7e7f5
Commit
00e7e7f5
authored
Feb 22, 2014
by
hass
Browse files
#2189791: Undefined index notice in realname_autocomplete()
parent
d5f36be0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
realname.module
realname.module
+2
-2
No files found.
realname.module
View file @
00e7e7f5
...
...
@@ -351,7 +351,7 @@ function realname_autocomplete($field_name, $entity_type, $bundle_name, $string
$accounts
=
user_load_multiple
(
$uids
);
foreach
(
$accounts
as
$account
)
{
$matches
[
t
(
'!account (@uid)'
,
array
(
'!account'
=>
$matches
[
$account
->
name
]
,
'@uid'
=>
$account
->
uid
))]
=
t
(
'!realname (@username)'
,
array
(
'!realname'
=>
$matches
[
$account
->
name
]
,
'@username'
=>
$account
->
name
));
$matches
[
t
(
'!account (@uid)'
,
array
(
'!account'
=>
format_username
(
$account
)
,
'@uid'
=>
$account
->
uid
))]
=
t
(
'!realname (@username)'
,
array
(
'!realname'
=>
format_username
(
$account
)
,
'@username'
=>
$account
->
name
));
}
}
// User autocomplete fields.
...
...
@@ -368,7 +368,7 @@ function realname_autocomplete($field_name, $entity_type, $bundle_name, $string
$accounts
=
user_load_multiple
(
$uids
);
foreach
(
$accounts
as
$account
)
{
$matches
[
$account
->
name
]
=
t
(
'!realname (@username)'
,
array
(
'!realname'
=>
$matches
[
$account
->
name
]
,
'@username'
=>
$account
->
name
));
$matches
[
$account
->
name
]
=
t
(
'!realname (@username)'
,
array
(
'!realname'
=>
format_username
(
$account
)
,
'@username'
=>
$account
->
name
));
}
}
...
...
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