Category is not saved
restyler - September 15, 2009 - 18:32
| Project: | User Points |
| Version: | 6.x-1.x-dev |
| Component: | Code: userpoints API |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
I've noticed that when you go to userpoints moderation
admin/user/userpoints/moderate
and edit some points, by changing taxonomy category from "Uncategorized" to "SomeCategory" this change is not saved.
After quick look at the code of userpoints.module I noticed that term id is not passed to userpoints_userpointsapi().
To fix that, add
<?Php
'tid' => $form_state['values']['tid'],
?>
to the params array (starts on line 1262)
that fixed the problem for me, now terms are saved properly

#1
Can you please post this as a patch (see http://drupal.org/patch for details).
However, this is a one liner, and therefore can be excepted from the patch requirement.
If you cannot create a patch, then please post the chunk to be modified (something like 5 lines before and 5 lines after where the change should be), and mark where the change should be.