I created a custom module and created a “related” field to AOS_PRODUCT. In the list view for the custom module, the link for the related field is not getting constructed using the ID for the AOS_PRODUCT field; it uses the ID for the custom module entry…
Thoughts?
Will
9 December 2014 11:29
2
Have you created the correct relationship from your custom module to AOS_Products?
Thanks,
Will.
As far as I can tell yes. The ID of the product gets stored correctly in the relate field of the relationship. What other files can I attach?
BTW, it is not a relationship, it is using the data type “relate”. Any idea why it would do this?
Hi,
What vardef is created for ‘relate type’ field in code ?
Here is the vardef code:
‘product’ =>
array (
‘required’ => true,
‘source’ => ‘non-db’,
‘name’ => ‘product’,
‘vname’ => ‘LBL_PRODUCT’,
‘type’ => ‘relate’,
‘massupdate’ => 0,
‘no_default’ => false,
‘comments’ => ‘’,
‘help’ => ‘Product for which the Bible data has to be entered’,
‘importable’ => ‘true’,
‘duplicate_merge’ => ‘enabled’,
‘duplicate_merge_dom_value’ => ‘1’,
‘audited’ => true,
‘reportable’ => true,
‘unified_search’ => false,
‘merge_filter’ => ‘disabled’,
‘len’ => ‘255’,
‘size’ => ‘20’,
‘id_name’ => ‘aos_products_id_c’,
‘ext2’ => ‘AOS_Products’,
‘module’ => ‘AOS_Products’,
‘rname’ => ‘name’,
‘quicksearch’ => ‘enabled’,
‘studio’ => ‘visible’,
),
Here is the listview code:
‘PRODUCT’ =>
array (
‘type’ => ‘relate’,
‘studio’ => ‘visible’,
‘label’ => ‘LBL_PRODUCT’,
‘id’ => ‘aos_product_id_c’,
‘link’ => true,
‘width’ => ‘10%’,
‘default’ => true,
),
Hi,
It seems this is a bug in SuiteCRM. I have tried for it. I face same issue.
You can register bug with bugtracker of SuiteCRM.
Hi,
Bug is registered with SugarCRM has status fixed.
I am using - SuiteCRM-7.2beta2
Url for bug - https://web.sugarcrm.com/support/issues/ed1f31a6-cb2d-12d1-5d15-52b399203902
So is it fixed in 7.2 beta?
Bug is still in beta 7.2. Can you please register it with Suite ?