jigoshop/jigoshop — pull request #470 by jjoeris (2011-12-07 10:45:20+00:00)
Title: fixed bug, when no JavaScript, and errors in checkout, the payment will ...

Hí, I fixed a bug, when no JavaScript is available, and there are errors in the checkout process, the payment will be reset to the first available payment method.
This is critical for my german second payment page, which posts all variables back to the original checkout page.

current($available_gateways)->set_current();
directly after
$available_gateways = jigoshop_payment_gateways::get_available_payment_gateways();
will always point to the first element.