Actions
Bug #5774
closedCBuser does not allow pre-setting a guest user object
Description
When calling setUserGetCBUserInstance with a guest user object it's ignored. The problem is you won't be able to use pre-parsed substitutions because it won't set the object. It instead just builds a new guest object. Allow setUserGetCBUserInstance to send an instance of $user and ignore the ->id check.
The workaround is as follows.
$cbUser = new CBuser();
$cbUser->_cbuser = $user;
Basically the last else case just needs to handle $user if preset and is an object instead of making a new one.
Updated by krileon almost 9 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Fixed in MR !1036
Actions