<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">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" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br>Regards,<br>Lajeesh<br></div><div><br></div><div><br></div></div></div></div></div></div>