[Vtigercrm-developers] webservice vtws_file_retrieve bug

lajeesh k lajeeshk at gmail.com
Mon Dec 7 12:05:20 GMT 2020


Hi,

I have logged a bug
https://code.vtiger.com/vtiger/vtigercrm/issues/1560

error from include/Webservices/FileRetrieve.php line 36

error happens when there are multiple entries in vtiger_seattachmentsrel
for the attachement id.

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.

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

Fix: change vtws_file_retrieve function so that we pass the parent record
id as argument and do not retrieve the parent record id

Regards,
Lajeesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20201207/89d35f0e/attachment.html>


More information about the vtigercrm-developers mailing list