hey guys,

After updgrading to D10 we started to notice a lot of issues with this $form.removeOnce is not a function in the Detach commerce_braintree function. This happens when user changed form from Credit Cards to Paypal... if only card is used seems to be all fine and dandy...

Also it seems to be related this https://www.drupal.org/project/commerce_braintree/issues/3361193 issue but I feel like the patch did not go deep enough

I wrote this patch hopefully it will sort the issue (it sorted issue for us).

Hope this fix works for others too

Cheers!

Comments

Povilas Uogintas created an issue. See original summary.

viren18febs’s picture

Status: Active » Needs review
keshavv’s picture

Status: Needs review » Reviewed & tested by the community

Works perfect. We can merge it. Moving to RTBC.

rgpublic’s picture

Seems like a duplicate of my issue #3390646. Hope one of those will be comitted soon.

nicxvan’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Both of them are missing some pieces too so I'm going to combine them on the other one since it already had a merge request set up. I'll reference this ticket for credit purposes.

See: https://www.drupal.org/project/commerce_braintree/issues/3390646 for up to date MR. Please review that one and confirm if it works for you.