Project

General

Profile

Actions

Bug #6318

closed

onAfterFieldsFetch does not container enough information

Added by krileon almost 8 years ago. Updated almost 8 years ago.

Status:
Rejected
Priority:
High
Assignee:
Target version:
-
Start date:
30 November 2016
Due date:
% Done:

100%

Estimated time:

Description

When onAfterFieldsFetch is fired the $user object is the object given to the _getTabFieldsDb function. The problem is if you're calling getFields then the user object is of the viewing user while the getFields object is $this->_cbuser. This means CB Conditional is being given the viewing user object instead of the displayed user object when testing conditions.

Including $this->_cbuser with the trigger would resolve this. onAfterTabsFetch will likely need the same fix.


Related issues 1 (0 open1 closed)

Related to CB Conditional - Bug #6317: fieldsFetch acting on wrong user objectClosedkrileon30 November 2016

Actions
Actions #1

Updated by krileon almost 8 years ago

  • Related to Bug #6317: fieldsFetch acting on wrong user object added
Actions #2

Updated by krileon almost 8 years ago

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

getFields usage supplies $fieldIdOrName. No other usage does. This can be used to determine a getFields API call was made and then can be ignored in CB Conditional as needed (in this case we don't want to remove from the fields array, but instead remove at display time).

Actions

Also available in: Atom PDF