Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
A bug is stopping the administrator being able to decline points in the moderation queue.
I found the problem both in 1.0 and 1.x-dev.
Proposed resolution
Row 307 in useradmin.module needs to be changed from:
$items['user/%user/points/%userpoints_transaction/decline'] = array(
to:
$items[$local_task_prefix . '/%userpoints_transaction/decline'] = array(
Comment | File | Size | Author |
---|---|---|---|
#5 | userpoints-1993354-fix_decline_link-5.patch | 551 bytes | PatchRanger |
#2 | userpoints-module-1993354-.patch | 521 bytes | cosmoresearcher |
Comments
Comment #1
BerdirSounds correct, please provide a patch :)
Comment #2
cosmoresearcher CreditAttribution: cosmoresearcher commentedHere you go, credits to druncore
Comment #3
PatchRanger CreditAttribution: PatchRanger commentedI guess it should be committed ASAP.
Comment #5
PatchRanger CreditAttribution: PatchRanger commentedHere is the patch for 7.x-2.x first. Credits to @druncore.
Comment #7
PatchRanger CreditAttribution: PatchRanger commentedHere is the follow-up issue for failing testing: #2122333: Enable branch testing as 7.x-2.x seems to be broken.