Notice: Undefined index: transaction in userpoints_filter_query() (line 1424 of /Users/balarama/Sites/git/drupal/sites/all/modules/userpoints/userpoints.module).

I get this error when trying to Decline a transaction from the user's transactions page. URL: /myuserpoints/transaction/14/decline?destination=user/1/points

It seems the problem lies in the url built in userpoints_get_transaction_actions().

Comments

andruxa’s picture

The 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

Veyron007’s picture

Issue summary: View changes

I 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']];
}
}