Active
Project:
Award
Version:
6.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2008 at 22:21 UTC
Updated:
27 Aug 2010 at 13:33 UTC
Clicking revoke sends me to a confirmation page. Click revoke again the confirm page refresh, and keeps refreshing no matter how many times I click it. It doesn't actually revoke.
Please help.
Comments
Comment #1
HS commentedYup revoke is not working. If one clicks confirm at the confirmation page, where it asks are you sure you want to revoke the award, nothing happens. the same page keeps loading asking for confirmation over and over.
Comment #2
Bananoide commentedI subscribe the same problem. And one more (see #341770 )
Comment #3
sugardave commentedI found the same issue. I believe I have fixed it, but I don't know how to make/submit a patch. Here is what you have to do:
In award.module, find the line (about 261):
function award_revoke_confirm_submit($form_id, $values) {and change it to:
function award_revoke_confirm_submit($form, &$form_state) {Next, for the if, I changed from:
if ($values['confirm'] && $grant = award_get_grant($values['aid'])) {to:
if (!empty($form_state['values']) && $grant = award_get_grant($form_state['values']['aid'])) {Finally, change:
award_revoke($values['aid']);to:
award_revoke($form_state['values']['aid']);I've only REALLY started getting into Drupal now that were at 6.x level, but I think this is how forms used to be handled in 5.x.
Comment #4
stuarteske commentedHi,
I had to solve this yesterday.
Wish I had seen this yesterday!
I would like to turn this into a patch for everyone.
How do you release a patch?
This module was written for drupal 5.x.
Please send me some feedback.
contact me at http://www.facebook.com/stuart.eske
Comment #5
Josh Benner commentedFeel free to submit a patch. This module isn't really maintained much these days -- so if someone wants to be a co-maintainer, just ask! :)
Comment #6
stuarteske commentedDo you have any documentation on how to create a patch?
I am new to this and have never created a patch...
Comment #7
Josh Benner commentedhttp://drupal.org/patch/create