I have a question regarding the max_points field, if you don't mind. I see some values that I don't understand. For example, a user comments on a blog post and gets 1 point. Points = 1, max points = 1. User comments on another blog, and gets another point. Points = 2, but now max points = 3. That doesn't make much sense to me - max points should be 2, as far as I can tell.

If that user goes and spends a point, max points should still be 2, but points should be 1.

Another example:
- User currently has 500 points, max points is also 500.
- User spends 200 points. Current points is now 300, but max points is 500.
- User gets another 600 points. Current points is now 900, but max points is 1100.

What are your thoughts?

CommentFileSizeAuthor
#3 userpoints_7.patch1.14 KBebeyrent
#2 userpoints_6.patch1.22 KBebeyrent

Comments

kbahey’s picture

ebeyrent’s picture

StatusFileSize
new1.22 KB

I have attached a patch for this issue. In summary, if the number of points is greater than 0, the points are added to the max points, instead of adding the current points to the max points.

ebeyrent’s picture

StatusFileSize
new1.14 KB

Let's try this again - fixed the patch paths...

jredding’s picture

Assigned: Unassigned » jredding
Category: support » bug
Status: Active » Fixed

Thanks for the patch. It has been incorporated into v3.

Anonymous’s picture

Status: Fixed » Closed (fixed)