Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix assigning nil to default_wallet_payment_source= #1896

Merged

Conversation

jhawthorn
Copy link
Contributor

Builds on top of #1888

The docs for this method specify Pass nil to clear the default., but that failed with

NoMethodError:
  undefined method `transaction' for nil:NilClass

This should be backported to a 2.2.1 release

@jhawthorn jhawthorn added type:bug Error, flaw or fault Code review needed labels May 8, 2017
@jhawthorn jhawthorn requested a review from jordan-brough May 8, 2017 22:44
@jhawthorn jhawthorn added this to the 2.2.1 milestone May 8, 2017
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Previously this was failing due to

    NoMethodError:
      undefined method `transaction' for nil:NilClass
@jhawthorn jhawthorn force-pushed the default_wallet_payment_source branch from 526658e to 0451275 Compare May 9, 2017 20:03
@jhawthorn jhawthorn merged commit 001c580 into solidusio:master May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Error, flaw or fault
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants