modules/Vtiger/models/DetailView.php
getDetailViewLinks reads links of type 'DETAILVIEWBASIC','DETAILVIEW', but not 'DETAILVIEWTAB'
so, adding new functionality similar to the updates tab is not easy to do cleanly.
Designs
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
Api Vtiger_Link_Model::getAllByType() with passed linktype, will only filter preferred linktypes over others. So i guess iterating over 'DETAILVIEWTAB' is not useful. Please share your thought regarding this.
Hi Uma, yes, I am adding DETAILVIEWTAB to the filter array on line 59 too so that there is something to iterate over. I will prepare a merge request in a bit
As we are making separate call inside api for getDetailViewRelatedLinks() to fetch 'DETAILVIEWTAB', What's the need to include that in linkTypes array of getDetailViewLinks() api?
getDetailViewRelatedLinks does hard coded stuff to set up the detail view/summary view /updates/comments links but it never goes to vtiger_links table to get custom ones added by modules. It doesn't call Vtiger_Link_Model::getAllByType