Bug #2166
closedcbUser class caching causing field display issues
Description
When Username field is set not to display on profile and an integration (CB LastView) uses the cbUser class to obtain the Username, Name, and/or Avatar fields with the $reason as "list" it is resulting in the Username field suddenly being displayed again.
I do not know if is directly related to just that plugin, but have traced to the following line of code.
$cbUser = CBuser::getInstance( $lastview->viewer_id );
$name = $cbUser->getField( 'name', null, 'html', 'none', 'list' );
$username = $cbUser->getField( 'username', null, 'html', 'none', 'list' );
$avatar = $cbUser->getField( 'avatar', null, 'html', 'none', 'list' );
With the above section removed the Username field does not display on profile as configured. If the getField function is used then the Username field is suddenly displayed again (didn't seam to matter which field). I also tried using cbUser with &, but same result.