<div dir="ltr">Of course, Alan,<br>the problem is that the getRelatedModuleRecordIds method only searches the vtiger_contpotentialrel table<br><div><br></div><div><div><img src="cid:ii_khmgjqqd0" alt="image.png" width="472" height="372"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mar., 17 nov. 2020 a las 15:53, Alan Lord (<<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The Opportunity has two different relationships with Contacts.<br>
<br>
The first is a 1:n relationship via a UIType10 reference field in the <br>
Opportunity called "contact_id".<br>
<br>
The second is via a n:n relationship which I believe is stored in <br>
vtiger_contpotentialrel.<br>
<br>
HTH<br>
<br>
Al<br>
<br>
<br>
<br>
<br>
<br>
On 17/11/2020 20:42, Henry Cumbicus Rivera wrote:<br>
> I see that it fails specifically with the related module of <br>
> Opportunities, in the source code I can see that it makes the query to <br>
> the table: vtiger_contpotentialrel, but this table is empty, the <br>
> relationship between contact and opportunity is not saved.<br>
> <br>
> As I can notice, the problem is not at the time of consulting the data <br>
> but rather at the time of saving the relationship between the contact <br>
> and the opportunity in the table: vtiger_contpotentialrel<br>
> <br>
> Path: 730vtigercrm01\modules\Vtiger\models\Module.php<br>
> image.png<br>
> <br>
> El mar., 17 nov. 2020 a las 15:30, Henry Cumbicus Rivera <br>
> (<<a href="mailto:hcumbicusr@gmail.com" target="_blank">hcumbicusr@gmail.com</a> <br>
> <mailto:<a href="mailto:hcumbicusr@gmail.com" target="_blank">hcumbicusr@gmail.com</a>>>) escribió:<br>
> <br>
>     Hello,<br>
>     I am customizing version 7.3 and I see that the option to transfer<br>
>     ownership from the Contacts module does not work, it DOES NOT<br>
>     TRANSFER the related modules, it only transfers the selected<br>
>     contacts from the list.<br>
>     Does anyone have the patch for that?<br>
> <br>
>     You can try it in the demo: <a href="https://demo.vtiger.com/vtigercrm" rel="noreferrer" target="_blank">https://demo.vtiger.com/vtigercrm</a><br>
> <br>
>     Observation:<br>
>     I'm transferring it from the Admin user to a group, since in this<br>
>     demo you can't create users, it comes out with an HTTP 500 error<br>
> <br>
>     Translated with <a href="http://www.DeepL.com/Translator" rel="noreferrer" target="_blank">www.DeepL.com/Translator</a><br>
>     <<a href="http://www.DeepL.com/Translator" rel="noreferrer" target="_blank">http://www.DeepL.com/Translator</a>> (free version)<br>
>     -- <br>
> <br>
>     ---------------------------------------------------------------<br>
>     Henry C.<br>
>     Tel.: 51956727976<br>
> <br>
> <br>
> <br>
> -- <br>
> <br>
> ---------------------------------------------------------------<br>
> Henry C.<br>
> Tel.: 956727976<br>
> <br>
> _______________________________________________<br>
> <a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
> <br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br><div>---------------------------------------------------------------</div><div>Henry C.</div><div>Tel.: 956727976</div></div></div></div></div></div></div></div></div></div></div></div></div>