"Recurring fee 6 deleted." - NOT

Posts: 42
Joined: 08/12/2008
Bug FinderGetting busy with the Ubercode.

Hello there,

When I try to delete a recurring fee, it gives me the confirmation "Recurring fee 6 deleted.", but does not delete the fee. This is happening to both, fees that have orders associated with them, and fees that had their orders deleted.

Any ideas on what is happening here?

Thanks,
Andrey.

Posts: 5352
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

hah, can't believe I didn't notice that in testing. Sticking out tongue

The function uc_recurring_delete() is using the wrong variable name to delete a fee... I'll fix it on Monday when I'm back in the office.

Posts: 6
Joined: 07/15/2008
Bug Finder

mr.andrey wrote:
Hello there,

When I try to delete a recurring fee, it gives me the confirmation "Recurring fee 6 deleted.", but does not delete the fee. This is happening to both, fees that have orders associated with them, and fees that had their orders deleted.

Any ideas on what is happening here?

Thanks,
Andrey.

Line 756 in uc_recurring.module
change from:
uc_recurring_fee_delete(array('fid' => arg(4)), 'user');
to
uc_recurring_fee_delete(array('pfid' => arg(4)), 'user');

Posts: 5352
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Fix confirmed and applied to core. Thank you! Laughing out loud