integreat-cms
integreat-cms copied to clipboard
Fix push notification bug
Short description
This pr fixes a problem that the best_translation
method of push notifications prefers translations without title over translations with title.
Proposed changes
- Only return the backend translation if it has a title
Side effects
Resolved issues
Fixes: #2726
Code Climate has analyzed commit 8e5270a4 and detected 0 issues on this pull request.
The test coverage on the diff in this pull request is 100.0% (50% is the threshold).
This pull request will bring the total coverage in the repository to 81.8% (0.0% change).
View more on Code Climate.
@JoeyStk I have added a test for this bug
Thanks :)