Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Another bug diagnosed by #2852207: Billing same as shipping.
When a payment_method radio is clicked, form api considers the rebuilt form to be submitted, ignoring the default values, and causing empty values to be shown instead. For example, the checkout form is loaded, "Cash on delivery" is selected, as is "Billing same as shipping" (since its #default_value is TRUE). Then we click "Credit card", and "Billing same as shipping" is unchecked, because there is $user_input.
The solution is the same that Address module uses, after #ajax clear dependent user input.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3115087-2-clear-input.patch | 1.72 KB | bojanz |
|
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedComment #4
bojanz CreditAttribution: bojanz at Centarro commentedCommitted.
Comment #6
Alex Bukach CreditAttribution: Alex Bukach at Oomph, Inc. commentedThis issue happens again because of https://www.drupal.org/project/commerce/issues/2950877 committed.