[Vtigercrm-developers] UITYPES and Translation files
Alan Lord
alanslists at gmail.com
Tue Mar 15 11:54:38 GMT 2022
On 15/03/2022 11:43, Alan Lord wrote:
> defaultvalue is optional, setPicklistValues($array) is not. That is what
> populates the picklist tables with the values.
One thing to be aware of is that setPicklistValues() doesn't check for
duplicate entries (or it didn't last time I looked).
So you either need to empty the table first (be careful with UIType 15
as there are now entries in vtiger_role2picklist too), or write your own
code to check so if you try and recreate a picklist field you don't end
up with multiple entries with the same value.
HTH
Al
More information about the vtigercrm-developers
mailing list