Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Karma points added to the wrong user's points when adding new friends

10 years 8 months ago
Licenses:
JomSocial Active

ISSUE SUMMARY:

Karma points added to the wrong user's points when adding new friends.

What I think is happening is that when someone adds a new friend, the points are added to the other users points. For example, Randy Siew had 12 points, Karlene Lewis had 1 point, Randy added Karlene as a friend but now Karlene has 13 points. Karlene's 1 point was added to Randy's 12 points. It should be that Karlene has 2 points, not 13.

STEPS TO REPLICATE:
1 Create a test user and login
2 Add Ronald Mohammed as a friend(Colleague)
3 Login as Ronald Mohammed and accept the test users friend request
4 Notice that the test users points went to 250+ or Ronald's points went from 250 to 1.

RESULT
The test user now has 250+ points or Ronald's points went from 250 to 1.

EXPECTED RESULT
Test user should only have 1 point.

BROWSER
Chrome

10 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

That because "Karlene" approve the friend request, because right now we only have user points rule "Friend Request Is Approved", the points will be added to who approve friend request.

thank you!

10 years 8 months ago
Licenses:
JomSocial Active

Hi Dimas, this is a bug. You don't understand the issue. Read it over and please put Albert on this. Thanks.

10 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Roland,

I see, I got it now.. yes this is a bug. I will report this to our developer.

thank you!

10 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Ronald,

here is the patch
- open this file components/com_community/models/user.php, find this :

CFactory::getUser()->_points = $points;
replace to :
CFactory::getUser($userId)->_points = $points;

let me know how it goes

10 years 8 months ago
Licenses:
JomSocial Active

Okay, it seems to be working properly now, Thanks.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW