-
Notifications
You must be signed in to change notification settings - Fork 784
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
In version 1.6.0 the logo isn't shown on the PDF #897
Conversation
In version 1.6.0 the logo isn't shown on the PDF invoice. When changing line 39 the logo returns.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are accessibility issues in these changes.
@@ -36,7 +36,7 @@ function invoice_logo_pdf() | |||
$CI = &get_instance(); | |||
|
|||
if ($CI->mdl_settings->setting('invoice_logo')) { | |||
return '<img src="file://' . getcwd() . '/uploads/' . $CI->mdl_settings->setting('invoice_logo') . '" id="invoice-logo">'; | |||
return '<img src="' . base_url() . 'uploads/' . $CI->mdl_settings->setting('invoice_logo') . '" id="invoice-logo">'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This image is missing a text alternative. This is a problem for people using screen readers.
Thanks for the PR man! I've merged it into the development branch since we need it for the next version |
Thanks! This fix worked for me. |
get someone help me ? os: alpine 3.18 |
@mohamad-supangat Did you use docker to start your |
In version 1.6.0 the logo isn't shown on the PDF invoice. When changing line 39 the logo returns.
Description
Related Issue
Motivation and Context
Screenshots (if appropriate):
Pull Request Checklist
Issue Type (Please check one or more)