Bug 481896

Summary: "Explore world animals" activity: Name of animal not displayed
Product: [Applications] gcompris Reporter: Philippe <pmiossec>
Component: generalAssignee: Jazeix Johnny <jazeix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Android   
OS: Android 10.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: 2 screenshots of the bug before and after clicking on a country
Screenshot after selecting level 3
Screenshot after clicking on a bad country

Description Philippe 2024-02-27 14:17:55 UTC
Created attachment 166137 [details]
2 screenshots of the bug before and after clicking on a country

SUMMARY


The name of the animal to find is not displayed until the good country is found and so the next animal name is displayed.

STEPS TO REPRODUCE
1. Open "Explore world animals" activity
2. switch to level "3"

OBSERVED RESULT

That "Click on the location where the given animal lives" is displayed **but the field that should contains the name of the animal to find is empty**

EXPECTED RESULT

The field that should contains the name of the animal to find is filled.

SOFTWARE/OS VERSIONS

* GCompris v4.0 on Android / Qt Version: 5.12.12
* GCompris v4.0 on Windows / Qt Version: 5.12.12

ADDITIONAL INFORMATION
Comment 1 Philippe 2024-02-27 14:20:48 UTC
Created attachment 166138 [details]
Screenshot after selecting level 3
Comment 2 Philippe 2024-02-27 14:21:30 UTC
Created attachment 166139 [details]
Screenshot after clicking on a bad country
Comment 3 Jazeix Johnny 2024-02-27 14:50:53 UTC
Git commit 9b85454f59b4244c4a5d87ac95086b673e622c43 by Johnny Jazeix.
Committed on 27/02/2024 at 14:50.
Pushed by jjazeix into branch 'master'.

explore_farm_animals, fix question not displaying when using previous button.

M  +1    -0    src/activities/explore_farm_animals/explore-level.js

https://invent.kde.org/education/gcompris/-/commit/9b85454f59b4244c4a5d87ac95086b673e622c43
Comment 4 Jazeix Johnny 2024-02-27 14:52:06 UTC
Thank you for opening the issue!
I could reproduce, we have a regression when using the previous level button, it does not reset the question.

I've fixed it, we will release it in the next minor version
Comment 5 Philippe 2024-02-27 14:55:37 UTC
Thanks a lot.
Very efficient bugfixing! (less time to fix than to report 👍😅)
Comment 6 Jazeix Johnny 2024-02-28 07:28:50 UTC
Git commit d58ec1c401c44022e38481c2924f7526bef81441 by Johnny Jazeix.
Committed on 28/02/2024 at 07:27.
Pushed by jjazeix into branch 'KDE/4.0'.

explore_farm_animals, fix question not displaying when using previous button.

M  +1    -0    src/activities/explore_farm_animals/explore-level.js

https://invent.kde.org/education/gcompris/-/commit/d58ec1c401c44022e38481c2924f7526bef81441