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

HS’s picture

Category: support » bug
Priority: Normal » Critical

Yup 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.

Bananoide’s picture

I subscribe the same problem. And one more (see #341770 )

sugardave’s picture

I 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.

stuarteske’s picture

Hi,

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

Josh Benner’s picture

Feel 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! :)

stuarteske’s picture

Do you have any documentation on how to create a patch?
I am new to this and have never created a patch...

Josh Benner’s picture