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

If custom logo feature is disabled, assume it's not enabled even if one is already uploaded #20621

Merged
merged 2 commits into from May 2, 2023

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Apr 24, 2023

To reproduce:

  • Upload a logo
  • Disable the custom logo feature in the config (General['enable_custom_logo']=0)
  • Send yourself an email
  • You will see it still uses the custom logo even though it's disabled

With this change, once the logo is disabled in config, it will no longer assume it's enabled. See eg https://github.com/matomo-org/matomo/blob/4.14.3-b1/core/View/HtmlReportEmailHeaderView.php#L78 where it checks if logo is enabled but doesn't consider the config setting.

Review

…ne is already uploaded.

To reproduce:
Upload a logo
Disable the custom logo feature in the config (`General['enable_custom_logo']=0`)
Send yourself an email
You will see it still uses the custom logo even though it's disabled
@tsteur tsteur added the Needs Review PRs that need a code review label Apr 24, 2023
Co-authored-by: Michal Kleiner <mk@011.nz>
@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2023

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label May 2, 2023
@sgiehl sgiehl added this to the 5.0.0 milestone May 2, 2023
@sgiehl sgiehl merged commit 934ed24 into 5.x-dev May 2, 2023
17 of 19 checks passed
@sgiehl sgiehl deleted the customlogodisable branch May 2, 2023 07:52
@sgiehl sgiehl added Bug For errors / faults / flaws / inconsistencies etc. and removed Needs Review PRs that need a code review Stale The label used by the Close Stale Issues action labels May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants