Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

badgeos_get_users_points should get default achievement type otherwise it shows 0 #686

Open
zishanj opened this issue Sep 14, 2019 · 1 comment

Comments

@zishanj
Copy link

zishanj commented Sep 14, 2019

There is a function difference in latest BadgeOS 3.2. badgeos_get_users_points now have 2nd parameter also which defaults to 0 and a correct achievement id must be provided otherwise it will show 0 points. In my case the achievement id was 1648 and it works.

BadgeOS should get the points from default achievement type if achievement id is not provided to make the function backward compatible.

@zishanj
Copy link
Author

zishanj commented Sep 14, 2019

In settings there is only field for default point type, if another field for default achievement type can also be provided then I guess it will become backward compatible.

@zishanj zishanj changed the title badgeos_get_users_points should get default point type otherwise it shows 0 badgeos_get_users_points should get default achievement type otherwise it shows 0 Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant