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

Bug in filter translation #34

Closed
agonyz opened this issue Dec 21, 2022 · 1 comment
Closed

Bug in filter translation #34

agonyz opened this issue Dec 21, 2022 · 1 comment
Labels

Comments

@agonyz
Copy link
Contributor

agonyz commented Dec 21, 2022

Bug description

In the filter translation the name is set to a boolean instead of the translation value.

It works for translations that are purely uppercase eg. KAUFEN because the value gets set again in Line 348 but does not for mixed eg. MIETE_PACHTEN.

This bug can be fixed by using the Null Coalescing Operator.

Steps to reproduce

Install the bundle, use the filter and have a translation that is not purely uppercase.

Expected behavior

The filter should output the translation from the translation files.

Screenshots

Frontend output of filter button shows "1" should be "Mieten/Pachten"

image

Debugging with Symfony Profiler

image

Environment

  • PHP-Version: 7.4.30
  • Contao-Version: 4.13.14
  • Bundles:
    • pdir/maklermodul-bundle: 2.8.2
    • pdir/maklermodul-sync-bundle: 2.7.2

This bug can be fixed by my pull-request: #33

@agonyz agonyz added the bug label Dec 21, 2022
@seibtph
Copy link
Contributor

seibtph commented Dec 22, 2022

Thanks for the PR. Version 2.8.3 is published.

@seibtph seibtph closed this as completed Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants