Active
Project:
User Points
Version:
7.x-1.x-dev
Component:
Code: userpoints_views
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2012 at 22:29 UTC
Updated:
5 Feb 2016 at 17:53 UTC
Jump to comment: Most recent
Comments
Comment #1
andruxa commentedThe same problem in 7.x-1.0 version
to solve this problem you need to replace the path
myuserpoints/%tnx_id/decline
to
user/%uid/points/%tnx_id/decline
Comment #2
Veyron007 commentedI have also the same problem: http://postimg.org/image/eu3jg7dxl/
But, in file sites/all/modules/userpoints/userpoints.module I cannot see the mentioned rows according to the comment #1.
Besides, my error message refer to row 1422. which is in this function:
/**
* Filter a query according to the selected filters.
*/
function userpoints_filter_query(SelectQueryInterface $query, $values) {
// Check for filtering. isset() is used because 0 is a valid value
// (Uncategorized).
if (isset($values['tid']) && $values['tid'] != 'all') {
// If a category is selected, limit both the default query and the query
// that displays pending points to this category.
$query->condition('p.tid', (int)$values['tid']);
$categories = userpoints_get_categories();
return $categories[$values['tid']];
}
}