Bug #19075
FE - React - Rerender the children after language changed
Status: | Feedback | Start date: | 04 December 2023 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | chok yee fan | % Done: | 100% | |
Category: | - | Spent time: | - | |
Target version: | - |
Description
issue
-----
webservice data loaded is EN, after change language to MY. Label changed but data still EN.
Expected
-----
Data loaded is EN, change language to MY, data should change to MY as well.
Solution
-----
Try to refresh the children page when language been changed.
History
#1 Updated by Amirul Umar Pandai about 1 year ago
- Status changed from New to Resolved
- Assignee changed from Amirul Umar Pandai to chok yee fan
- % Done changed from 0 to 50
#2 Updated by chok yee fan about 1 year ago
- Status changed from Resolved to Assigned
- Assignee changed from chok yee fan to Amirul Umar Pandai
please apply it into organisation profile search as well, let see have any issue or not
#3 Updated by Amirul Umar Pandai about 1 year ago
- Assignee changed from Amirul Umar Pandai to chok yee fan
- % Done changed from 50 to 100
Applied change to remaining pages except for the following (did not contain call to searchForm/dataEntryForm ws):
- Business Constitution
- Country
- Message Template
- Security Policy
- User Profile ("System Info" tab)
re-retrieve data on language change
#4 Updated by chok yee fan 12 months ago
- Assignee changed from chok yee fan to Amirul Umar Pandai
please cross check for each modules
#5 Updated by Amirul Umar Pandai 12 months ago
- Assignee changed from Amirul Umar Pandai to chok yee fan
Redesigned logic for running code on language change. Created custom hook to make applying to new pages easier
useEffectOnce + useLanguageChanged custom hook
#6 Updated by Tan Jiau Yan 11 months ago
- File Screenshot 2024-01-29 121451.png added
- Assignee changed from chok yee fan to Amirul Umar Pandai
Issue :
After change language, the title in data table no changed into the correct language. But, it changed when click the another module and click back to ori module to call searchForm and searchAction ws.
Expected :
After change language, the title in data table should be changed into the correct language.
#7 Updated by Amirul Umar Pandai 11 months ago
- Assignee changed from Amirul Umar Pandai to chok yee fan
Bug #19075: trigger searchAction if search table still holds data
#8 Updated by chok yee fan 11 months ago
- File Screenshot 2024-02-07 at 11.16.18 AM.png added
- Assignee changed from chok yee fan to Amirul Umar Pandai
issue
-----
modify function -> change language -> record no change.
expected
-----
modify function -> change language -> record refresh.
#9 Updated by Amirul Umar Pandai 11 months ago
- Assignee changed from Amirul Umar Pandai to Hazimi Muhammad
Bug #19075 - refresh viewAction on language change
#10 Updated by Hazimi Muhammad 11 months ago
- Status changed from Assigned to Feedback
- Assignee changed from Hazimi Muhammad to chok yee fan
Issue has been fixed.
Already test for this module when modify and change the language, the form will refresh.
business-constitution
country
mleb-function
mleb-system
organization-profile
user-category
user-profile
Click User Profile -> click Search button -> click data in table -> click modify -> modify the form -> click change language button -> the record had been refresh.