-
- Downloads
[FIX] gamification, website_profile : re-fix division by zero if user has no karma
If a new user try to access the elearning platform or his porfile, if he has no karma, has it is the case for new users, he won't get any rank. So that the next rank karma minus current rank karma equals zero. To avoid this, next_rank will always be first one existing if the user has no karma. Also, the current rank will not be displayed if the user has no karma. finally, next rank will not be displayed if the user reached the last existing rank. Task ID : 1941250 PR #31512
Showing
- addons/gamification/data/gamification_karma_rank_data.xml 6 additions, 0 deletionsaddons/gamification/data/gamification_karma_rank_data.xml
- addons/gamification/models/res_users.py 12 additions, 8 deletionsaddons/gamification/models/res_users.py
- addons/gamification/static/img/rank_misc_world.png 0 additions, 0 deletionsaddons/gamification/static/img/rank_misc_world.png
- addons/website_profile/views/website_profile.xml 9 additions, 4 deletionsaddons/website_profile/views/website_profile.xml
- addons/website_slides/views/website_slides_templates_homepage.xml 8 additions, 6 deletions...ebsite_slides/views/website_slides_templates_homepage.xml
Loading
Please register or sign in to comment