place an order using COD payment method, look at the order as an admin, refresh the window, delivery date is replaces with 01/01/1970

CommentFileSizeAuthor
#5 ga_patch_uc_payment_01.txt675 bytesginc

Comments

ginc’s picture

it seems to me that op "order-delete" get executed when someone looks at the order! we are developing a custom payment module for uc and i had the same bug there, when i removed the lines after case "order-delete", the bug disappeared, but i couldn't pinpoint the problem root yet.

Island Usurper’s picture

Status: Active » Fixed

Found the problem. There's a missing break; statement between the 'can_delete' and 'delete' cases in uc_payment_order(). If uc_payment thinks the order can be deleted, it therefore thinks it is being deleted and invokes the 'order-delete' op of the payment methods.

ginc’s picture

can you please submit a patch?
and i don't understand why the 'can_delete' and 'delete' cases in uc_payment_order() are considered when someone just look at the order???

Island Usurper’s picture

Just get version 1.5. There's lots of other good stuff there, too.

When you view an order, there's the possibility you may be shown a delete button. So Ubercart checks whether all of the various modules will allow you to delete it. If the order shouldn't be deleted, the link or button won't be shown. 'delete' shouldn't happen just because you look at an order, but 'can_delete' certainly should.

ginc’s picture

Version: 5.x-1.4 » 5.x-1.5
Status: Fixed » Patch (to be ported)
StatusFileSize
new675 bytes

not fixed in 1.5, patch attached

rszrama’s picture

Status: Patch (to be ported) » Fixed

Hmm... it looks like this was committed, just not for the 1.5 release. It should show up in the 1.6 either later this week or next week.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

pebosi’s picture

Version: 5.x-1.5 » 5.x-1.6

Still have this problem on the 1.6 Version

pebosi’s picture

Status: Closed (fixed) » Active
rszrama’s picture

Status: Active » Fixed

This is working fine in the 1.6 on the Livetest. I'd make sure your Payment Pack module actually got updated. If it's not working, please open a new issue, as this one is old and a little confused.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.