New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document Attachment Subpanel link incorrect #6511
Comments
I've seen a similar thing recently with Images, also the |
I think its was introduced in commit 0b7567c and relates #5822. @PedroErnst @daniel-samson global $currentModule;
$displayParams['module'] = $currentModule; The Value of
The type={if empty($vardef.displayParams.module)}{$displayParams.module}{else}{$vardef.displayParams.module}{/if} The condition |
Hi @markbond1007 @J-Light Can you please test the propose fix and confirm that it works as expected. |
@jack7anderson7 I have tried this fix and can confirm the links work correctly after applying the patch (7.10.10 Suitecrm) |
@jack7anderson7 👍 ... tested and works, thanks. |
Fixed #6511 - Document Attachment Subpanel link incorrect
Thanks @markbond1007 & @markbond1007 You're testing is very much appreciated! Thats it merged into the next release. |
Issue
When uploading documents as linked/related to other objects (ie Accounts), the download link in the subpanel is incorrect.
The link is like this:
http://suitecrm.icestarmedia.com/index.php?entryPoint=download&id=d72b597a-429a-61e4-0930-5bf3e8d8c6f9&type=Accounts
prior to the updated to 7.10.10 the link was like this:
https://crm.workingoptions.co.uk/index.php?preview=yes&entryPoint=download&id=2912e3c6-ada0-7a64-6658-5bdc70c9028a&type=Documents
When clicking the new link it provides an "Invalid File reference" error. Visiting the document full details object and downloading is fine (and works) so the file is correctly stored.
Expected Behavior
CLicking the download/preview links on the subpanel should download the file.
Actual Behavior
Get a white page with "Invalid file reference"
Possible Fix
Link is wrong, its pulling "type=" from the parent object rather than the Document Object.
Steps to Reproduce
Context
Your Environment
The text was updated successfully, but these errors were encountered: