Only when entering a coupon does this happen.
This does not happen when a coupon is not used.

On the shipping pane, if the shipping method is changed the page will not submit, throwing this error.
"An illegal choice has been detected. Please contact ..."

The page will submit on the second try, if the shipping option has not been updated again.
The coupon pane is on the previous page.

I upgraded the the 2.x-dev version (2015-Jul-06) to see if that helps, it did not.
What do think is going on?

CommentFileSizeAuthor
#2 Screenshot 2016-03-06 18.53.14.png37.42 KBdeardagny
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

garyg created an issue. See original summary.

deardagny’s picture

I'm having a similar and possibly related issue. I'm using the latest dev versions of Coupon, Discount, and Shipping. I have the coupon entry on page 1, and shipping options on page 2 (which are returned via Commerce FedEx). If a coupon is applied to the order, then attempting to change from the default shipping option on page 2 of checkout and submitting results in the error shown in the attached image, even though there is clearly a selection made.

Strangely, leaving the default option selected or changing the selection twice works fine. It's only after changing the selection once that the error occurs.

It seems as though the form state isn't updated properly via ajax on the first change. Has anybody else experienced this?