Project

General

Profile

Actions

Bug #8231

closed

Substitutions not always accessible

Added by krileon over 4 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Start date:
11 November 2020
Due date:
% Done:

100%

Estimated time:

Description

This is due to the onAfterFieldsFetch trigger sending the viewing user user object instead of the user object being called in getField sent to getFieldRow. Likely that core CB will need to be improved before these substitutions can be more reliable.

Actions #1

Updated by krileon over 4 years ago

This is specifically in regards to substituting in fields within a field group. Example as follows.

[cb_fieldgroup__0__cb_text]

Actions #2

Updated by krileon over 4 years ago

This appears to be a long standing bug in core CB with getField using $this->getMyUserDataInstance() instead of $this->_cbuser to pass to _getTabFieldsDb as _getTabFieldsDb should be called with the user object of the profile attempting to be accessed.

Actions #3

Updated by krileon over 4 years ago

  • Status changed from Assigned to Rejected
  • Target version deleted (2.0.0)
  • % Done changed from 0 to 100

This is a core CB bug. See #8232

Actions

Also available in: Atom PDF