<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">+1 to that Alan. Relationships should ALL work in the same way. As the table name implies it should store the n:n relationship between entity modules (and that means ALL entity modules!) <br clear="all"></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="font-size:12.8px;color:rgb(80,0,80)"><span style="color:navy;font-family:Verdana,sans-serif;font-size:10pt">Martin Allen</span></p><p style="font-size:12.8px;color:rgb(80,0,80)"><b style="font-size:12.8px"><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(51,51,153)">01392 248692 - Main Office<br>01392 690659 - Direct Line</span></b><br></p><p style="font-size:12.8px;color:rgb(80,0,80)"><b><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(51,51,153)"><img width="288" height="65" src="cid:image001.png@01CFC1D6.1BCFF790" alt="signature2"></span></b><span style="color:rgb(31,73,125)"></span></p><p style="font-size:12.8px;color:rgb(80,0,80)"><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:navy">Have you visited our website recently? <a href="http://www.clystnet.com/" style="color:rgb(17,85,204)" target="_blank">https://www.clystnet.com</a></span><span style="color:rgb(31,73,125)"></span></p><p style="font-size:12.8px;color:rgb(80,0,80)"><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:navy"><br></span><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(153,153,153)">The information in this email is confidential If you are not the intended recipient, you must not read or use that information. This email and any attachments are believed to be virus free however no responsibility is accepted by Clystnet for any loss or damage arising in any way from receipt or use thereof. Clystnet Ltd (company reg number 7164503) is based at Silverdown Park, Fair Oak Close, Clyst Honiton, EX5 2UX</span></p></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 18 Nov 2020 at 07:57, Alan Lord <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Why do we store contacts<->potentials in that table?<br>
<br>
Why not use crmentityrel? Then vtiger only needs one mechanism and no <br>
"extra code" to handle these weird "non-standard" relationships?<br>
<br>
Al<br>
<br>
<br>
On 18/11/2020 06:36, Uma S wrote:<br>
> Hi Henry,<br>
> <br>
> Yes! We validated this issue and noted the cause as, Relationship <br>
> between Contacts to Opportunities is not pushed <br>
> to vtiger_contpotentialrel. Whereas transfer ownership solely depends on <br>
> these entries.<br>
> <br>
> I have created the issue here <br>
> <<a href="https://code.vtiger.com/vtiger/vtigercrm/issues/1542" rel="noreferrer" target="_blank">https://code.vtiger.com/vtiger/vtigercrm/issues/1542</a>>, Which will be <br>
> addressed in the pipeline.<br>
> <br>
> On Wed, Nov 18, 2020 at 2:52 AM Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a> <br>
> <mailto:<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>>> wrote:<br>
> <br>
>     On 17/11/2020 20:57, Henry Cumbicus Rivera wrote:<br>
>      > Of course, Alan,<br>
>      > the problem is that the getRelatedModuleRecordIds method only<br>
>     searches<br>
>      > the vtiger_contpotentialrel table<br>
> <br>
>     I'm not sure that is correct.<br>
> <br>
>     The use of vtiger_contpotentialrel will be called if the<br>
>     $relationFieldId is empty.<br>
> <br>
>     <a href="https://code.vtiger.com/vtiger/vtigercrm/blob/master/modules/Vtiger/models/Module.php#L1653" rel="noreferrer" target="_blank">https://code.vtiger.com/vtiger/vtigercrm/blob/master/modules/Vtiger/models/Module.php#L1653</a><br>
> <br>
>     But this test is itself inside a foreach loop so I think it should<br>
>     check<br>
>     _both_ relationship mechanisms anyway.<br>
> <br>
>     <a href="https://code.vtiger.com/vtiger/vtigercrm/blob/master/modules/Vtiger/models/Module.php#L1645" rel="noreferrer" target="_blank">https://code.vtiger.com/vtiger/vtigercrm/blob/master/modules/Vtiger/models/Module.php#L1645</a><br>
> <br>
>     Al<br>
>     _______________________________________________<br>
>     <a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
> <br>
> <br>
> <br>
> -- <br>
> With<br>
> Best Regards<br>
> Uma.S<br>
> Vtiger Team<br>
> <br>
> _______________________________________________<br>
> <a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
> <br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>