Project

General

Profile

Bug #2225 » cb.core-rev2.patch

krileon, 24 January 2011 20:49

View differences:

components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php
}
}
$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 );
......
// 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 );
$gids = cbGetParam( $postdata, 'gid', 0 );
if ( checkJversion() == 2 ) {
$user->gids = $gids;
} else {
$user->gid = $gids;
}
$user->block = cbGetParam( $postdata, 'block', 0 );
$user->sendEmail = cbGetParam( $postdata, 'sendEmail', 0 );
$user->approved = cbGetParam( $postdata, 'approved', 0 );
(7-7/12)