[Vtigercrm-developers] vtws_retrieve(user_id) roleid is always empty.

Alan Lord alanslists at gmail.com
Wed Oct 6 08:42:00 GMT 2021

The User class has its own retrieve_entity_info method that correctly 
populates the column_fields['roleid'].

The roleid field is uitype 98.

In vtiger_ws_fieldtype this is classed as a "reference" fieldtype.

My guess is that the roleid value is being removed in the 
DataTransform::sanitizeReferences() method because the reference, e.g. 
the "Role" is not an entity module.

@Prasad - am I right?



On 05/10/2021 21:16, Alan Lord wrote:
> How to get the roleid?
> I have tested vtws_retrieve('19x1', $user) on 7.1, 7.2. 7.3 & 7.4 and 
> the roleid is always empty. (Also tried a different user id).

More information about the vtigercrm-developers mailing list