<div dir="ltr">Hi lajeesh,<div><br></div><div>Please do review the comments on the reported issue, which might help.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 7, 2020 at 5:39 PM lajeesh k <<a href="mailto:lajeeshk@gmail.com">lajeeshk@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"><div dir="ltr">Hi,<div><br></div><div>I have logged a bug</div><div><a href="https://code.vtiger.com/vtiger/vtigercrm/issues/1560" target="_blank">https://code.vtiger.com/vtiger/vtigercrm/issues/1560</a></div><div><br></div><div><p style="box-sizing:border-box;margin:0px 0px 10px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px">error from include/Webservices/FileRetrieve.php line 36</p><p style="box-sizing:border-box;margin:0px 0px 10px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px">error happens when there are multiple entries in vtiger_seattachmentsrel for the attachement id.</p><p style="box-sizing:border-box;margin:0px 0px 10px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px">for example I have created a organization, then create a document with attachements, then add this documents to the organization this time there will be two entries in vtiger_seattachmentsrel, one for relation with document and other is for relation with organization.</p><p style="box-sizing:border-box;margin:0px 0px 10px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px">when I call vtws_file_retrieve function to retrieve attachment of a document, it first retrieves related crm id using vtws_getAttachmentRecordId function. It should actually retrieve crm id of document, but it retrieve crm id of Account and it cause module name mismatch and throw this error</p><p style="box-sizing:border-box;margin:0px 0px 10px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px">Fix: change vtws_file_retrieve function so that we pass the parent record id as argument and do not retrieve the parent record id</p><div><div dir="ltr"><div dir="ltr"><div><br>Regards,<br>Lajeesh<br></div><div><br></div><div><br></div></div></div></div></div></div>
_______________________________________________<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">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>