Skip to content
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

Fix Preview present even when there is no corresponding file #30585

Open
wants to merge 2 commits into
base: 18.0
Choose a base branch
from

Conversation

MaximilienR-easya
Copy link
Contributor

Fix

We got case where in the client page, in the list of propale, contract, etc, case where one of them don't have a PDF but still have a preview link.
We add a check to verify if the file is existing and if it's non-existent, we don't show a preview link.

htdocs/comm/card.php Outdated Show resolved Hide resolved
@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Aug 10, 2024
@rycks
Copy link
Contributor

rycks commented Sep 5, 2024

hello @MaximilienR-easya i do not have the bug on my dolibarr ...

on /comm/index.php?mainmenu=commercial&leftmenu= there is now preview icon:

image

could you please explain to us where is the bug ?

thanks,
Éric

@MaximilienR-easya
Copy link
Contributor Author

hello @MaximilienR-easya i do not have the bug on my dolibarr ...

on /comm/index.php?mainmenu=commercial&leftmenu= there is now preview icon:

image

could you please explain to us where is the bug ?

thanks, Éric

The problem is not on comm/index.php but in comm/card.php.
The problem also exists when there is a file but is not named as the reference.

@rycks
Copy link
Contributor

rycks commented Sep 18, 2024

Here is the bug!

image

image

Copy link
Contributor

@rycks rycks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok for me with that solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants