Currently the month of the credit card form defaults to January. This can lead to the default state of the credit card form to be in an invalid state should it be submitted as it stands.
I've created some sane default for this expiry month, expiry year and start year (current year - 5 of 10)
I'll attach patch following this post.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | default-creditcard-expiry-month-1258254-1.patch | 682 bytes | j0rd |
Comments
Comment #1
j0rd commentedHere's the patch. It's only modifying 3 lines.
Comment #2
j0rd commentedUpdate status
Comment #3
rszrama commentedAhh, good catch. This one's a no brainer. Committed it and realized in testing that I needed to add the nicer formatting to the start date fields that I recently added to the expiration date fields. Added it at the same time.
Thanks! (Been a little busy at the Con, but I'll be reviewing your other issues, too. : )
Commit:http://drupalcode.org/project/commerce.git/commitdiff/84d8020
Comment #4
j0rd commentedNo problem about the next couple days. I'd rather have you guys discussing the future, than working on the current.
Thanks for the commit.