summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/src
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2019-03-05 12:14:21 +0000
committerThibault Delavallée <tde@odoo.com>2019-03-06 14:08:24 +0000
commit1949c796b522dbb96b3823839742e8727ab670b5 (patch)
tree1ad7297bdfe0975f7efd00c5cc68ce6c90b6d52f /addons/website_forum/static/src
parentc7cceaef793052a98c159822a75ba0abf76d57a4 (diff)
[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
Diffstat (limited to 'addons/website_forum/static/src')
0 files changed, 0 insertions, 0 deletions