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
Community Builder
Usergroups Field for Community Builder
Commits
3f9ef7f9
Commit
3f9ef7f9
authored
Mar 05, 2016
by
Reinhold Kainhofer
Browse files
V2.0.1: Fix wrong user id for groups loading
parent
eccaf4bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
cb.usergroupsfield.php
View file @
3f9ef7f9
...
...
@@ -3,7 +3,7 @@
* Joomla Community Builder 2.x User groups Field Type Plugin: plug_cbusergroupsfield
* Lets the administrator change the user's joomla groups in the CB profile in the FE.
* Based on the CBfield_userparams class of the cb.core.php plugin, copyright (C) Beat, JoomlaJoe, www.joomlapolis.com and various
* @version
$Id$
* @version
2.0.1
* @package plug_cbusergroupsfield
* @subpackage cb.usergroupsfield.php
* @author Reinhold Kainhofer, Open Tools
...
...
@@ -131,7 +131,7 @@ class CBfield_usergroups extends cbFieldHandler {
// This is from CB\Database\Table\UserTable::afterBindFromDatabase,
// which is documented as WIP and not adviced to be called directly,
// so we duplicate the code here...
$gids
=
array_values
(
(
array
)
\
JFactory
::
getAcl
()
->
getGroupsByUser
(
$
this
->
id
,
false
)
);
$gids
=
array_values
(
(
array
)
\
JFactory
::
getAcl
()
->
getGroupsByUser
(
$
user
->
id
,
false
)
);
foreach
(
$gids
as
$k
=>
$v
)
{
$gids
[
$k
]
=
(
string
)
$v
;
}
...
...
releases/plug_opentools_cb2_usergroupsfield_v2.0.1.zip
View file @
3f9ef7f9
No preview for this file type
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