Hi,

Maybe I'm not understanding something fundamental about the function of userpoints expiration, but the behavior makes no sense to me.

I have two categories for userpoints: A and B. I enabled expiration after 1 day. So at day 0, let's say a user has these points:
A: 3
B: 4

However, on day 1, the expiration points do not expire per category. Since I had to choose a default userpoints category, I picked "Uncategorized". So on day 1, the user's points look like this:
A: 3
B: 4
Uncategorized: -7

This seems totally backwards. Wouldn't it be better to expire points from category A by doing a negative credit back to category A, and expire points from B back to B so everything ends up at 0 again?

Thanks for the help.

CommentFileSizeAuthor
#4 expiration_of_categorized-1477900.patch906 byteswebadpro

Comments

vadim.eremeev’s picture

Hello,

+1

I have exactly the same issue. I have two types of user points (2 taxonomy categories) and when points in one of category are expired - module create expire transaction with tid = 0 but not with original tid.

Regards,
Vadim

webadpro’s picture

I'm facing the exact same issue. This sure is a bug and needs to be fixed. I'm also using the latest DEV Version.

webadpro’s picture

I have fixed it. Please review the patch.

webadpro’s picture

Status: Active » Needs review
StatusFileSize
new906 bytes

Patch

manuel.adan’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Closing this as outdated, 6.x version is no longer maintained.