-
-
Notifications
You must be signed in to change notification settings - Fork 327
Labels
Affects: 3.10.0Affects: 3.11.0Affects: 3.11.1Affects: 3.11.2Affects: 3.11.3Affects: 3.12.0Affects: 3.12.1Affects: 3.13.0Affects: 3.14.0Affects: 3.14.1Affects: 3.14.2Affects: 3.15.0Affects: 3.16.0Affects: 3.16.1Affects: 3.17.0Affects: 3.17.1Affects: 3.17.2Affects: 4.0.0Affects: 4.0.1Affects: 4.1.0Affects: 4.1.1Affects: 4.1.2Affects: 4.10.0Affects: 4.11.0Affects: 4.12.0Affects: 4.13.0Affects: 4.14.0Affects: 4.15.0Affects: 4.16.0Affects: 4.17.0Affects: 4.18.0Affects: 4.19.0Affects: 4.2.0Affects: 4.2.1Affects: 4.2.2Affects: 4.2.3Affects: 4.2.4Affects: 4.20.0Affects: 4.20.1Affects: 4.21.0Affects: 4.21.1Affects: 4.22.0Affects: 4.3.0Affects: 4.3.1Affects: 4.3.2Affects: 4.4.0Affects: 4.4.1Affects: 4.4.2Affects: 4.5.0Affects: 4.5.1Affects: 4.5.2Affects: 4.6.0Affects: 4.7.0Affects: 4.7.1Affects: 4.7.2Affects: 4.8.0Affects: 4.8.1Affects: 4.9.0Affects: 5.0.0Type: BugFix something that isn't working as intendedFix something that isn't working as intended
Description
Describe the bug
When the user language is set to Nepali, the aggregate targets always show 0.
To Reproduce
Steps to reproduce the behavior:
- Add at least one target in the configuration that has
aggregate: true - Make sure that the target counter goes up as CHW
- Set language to English
- Make sure that the aggregate target counter goes up as a supervisor
- Change language to Nepali
- See all the aggregate targets go back to 0
Expected behavior
I expected the aggregate targets to show up regardless of the langauge selected
Logs
No error in the console
Screenshots
Language set to English:
Language set to French:
Environment
- Instance: local
- Browser: Chrome
- Client platform: Windows
- App: webapp
- Version: 4.15 ~ master
Additional context
When the targets are being fetched, the numerals in the keys are changed to Devanagari (script used for Nepali language).
cht-core/webapp/src/ts/services/target-aggregates.service.ts
Lines 86 to 90 in bed4546
| const opts = { | |
| start_key: `target~${tag}~`, | |
| end_key: `target~${tag}~\ufff0`, | |
| include_docs: true, | |
| }; |
Metadata
Metadata
Assignees
Labels
Affects: 3.10.0Affects: 3.11.0Affects: 3.11.1Affects: 3.11.2Affects: 3.11.3Affects: 3.12.0Affects: 3.12.1Affects: 3.13.0Affects: 3.14.0Affects: 3.14.1Affects: 3.14.2Affects: 3.15.0Affects: 3.16.0Affects: 3.16.1Affects: 3.17.0Affects: 3.17.1Affects: 3.17.2Affects: 4.0.0Affects: 4.0.1Affects: 4.1.0Affects: 4.1.1Affects: 4.1.2Affects: 4.10.0Affects: 4.11.0Affects: 4.12.0Affects: 4.13.0Affects: 4.14.0Affects: 4.15.0Affects: 4.16.0Affects: 4.17.0Affects: 4.18.0Affects: 4.19.0Affects: 4.2.0Affects: 4.2.1Affects: 4.2.2Affects: 4.2.3Affects: 4.2.4Affects: 4.20.0Affects: 4.20.1Affects: 4.21.0Affects: 4.21.1Affects: 4.22.0Affects: 4.3.0Affects: 4.3.1Affects: 4.3.2Affects: 4.4.0Affects: 4.4.1Affects: 4.4.2Affects: 4.5.0Affects: 4.5.1Affects: 4.5.2Affects: 4.6.0Affects: 4.7.0Affects: 4.7.1Affects: 4.7.2Affects: 4.8.0Affects: 4.8.1Affects: 4.9.0Affects: 5.0.0Type: BugFix something that isn't working as intendedFix something that isn't working as intended
