
Originally Posted by
Darkenergy
Hi Andrew
Thanks for your reply - Modulebuilder had created the relate fields correctly and they should display and function as intended.
However, after much delving into the workings of SugarBean.php I found that my problem is caused by a bug in the MS SQL Server driver which truncates returned field names to 30 characters.
Modulebuilder generates related field names from the names of the related modules - an example in my case being 'equip_equipmenttype_equip_equipment_name' - which is longer than 30 characters and gets truncated to 'equip_equipmenttype_equip_equi'. The result of this is that the name of the relate field in the bean does not match the value that the query fetches from the database and does not get populated.
I've created a temporary workaround for this by editing SugarBean.php to truncate the field name to 30 chars which is working in my instance but could result in non-unique field names.
I've not found any other threads on this problem so I'll start a new one.
Thanks for your help
Ian
Bookmarks