Line 115 of userpoints_nc.module, the 'operation' you use for $op = 'delete' in hook_nodeapi is "operation" (it should be 'delete').
Current:
case 'delete':
if (variable_get(USERPOINTS_POST . '_undo_points_on_delete', true)) {
$points = -$points;
$params = array(
'points' => $points,
'uid' => $node->uid,
'operation' => 'operation',
'entity_id' => $node->nid,
'entity_type' => 'node',
);
userpoints_userpointsapi($params);
}
break;
Should be:
'operation' => t('delete')
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | userpoints_nc-875140.patch | 471 bytes | quotesbro |
| #1 | userpoints_nc-fixed-delete-operation-label.patch | 449 bytes | mstef |
Comments
Comment #1
mstef commentedPatch
Comment #2
ezra-g commentedMarking as "needs review".
Comment #4
quotesbro commentedPatch for Git
Comment #6
quotesbro commentedpatch against dev
Comment #7
quotesbro commented#4: userpoints_nc-875140.patch queued for re-testing.
Comment #8
quotesbro commentedComment #9
berdirThanks, commited.