[Vtigercrm-developers] webservice vtws_file_retrieve bug

Uma S uma.s at vtiger.com
Wed Dec 9 11:08:38 GMT 2020


Hi lajeesh,

Please do review the comments on the reported issue, which might help.

On Mon, Dec 7, 2020 at 5:39 PM lajeesh k <lajeeshk at gmail.com> wrote:

> 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
>
>
> _______________________________________________
> http://www.vtiger.com/



-- 
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20201209/3bee88ca/attachment-0001.html>


More information about the vtigercrm-developers mailing list