# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php +++ components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php @@ -3522,8 +3522,12 @@ } } - $lists['gid'] = moscomprofilerHTML::selectList( $gtree, 'gid', 'class="inputbox" size="11" mosReq="0"', 'value', 'text', $user->gid, 2, false ); + if ( checkJversion() == 2 ) { + $lists['gid'] = moscomprofilerHTML::selectList( $gtree, 'gid[]', 'class="inputbox" size="11" mosReq="0" multiple="multiple"', 'value', 'text', $user->gids, 2, false ); + } else { + $lists['gid'] = moscomprofilerHTML::selectList( $gtree, 'gid', 'class="inputbox" size="11" mosReq="0"', 'value', 'text', $user->gid, 2, false ); } + } // build the html select list $lists['block'] = moscomprofilerHTML::yesnoSelectList( 'block', 'class="inputbox" size="1"', $user->block ); @@ -3657,7 +3661,12 @@ // this is (for now) handled in the core of CB... except params and block/email/approved/confirmed: if ( $_CB_framework->getUi() == 2 ) { - $user->gid = cbGetParam( $postdata, 'gid', 0 ); \ No newline at end of file + $gids = cbGetParam( $postdata, 'gid', 0 ); + if ( checkJversion() == 2 ) { + $user->gids = $gids; + } else { + $user->gid = $gids; + } \ No newline at end of file $user->block = cbGetParam( $postdata, 'block', 0 ); $user->sendEmail = cbGetParam( $postdata, 'sendEmail', 0 ); $user->approved = cbGetParam( $postdata, 'approved', 0 );