Project

General

Profile

Actions

Bug #2166

closed

cbUser class caching causing field display issues

Added by krileon over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
03 January 2011
Due date:
% Done:

100%

Estimated time:
2:00 h

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.

http://www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,125/id,145222/#149873

Actions

Also available in: Atom PDF