-
Notifications
You must be signed in to change notification settings - Fork 49
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
OrderForm.php - process() misses an edge/rare case #41
Comments
@chrisrae agree that this is an issue, would perhaps be resolved with changes to use member extension instead. Discussion here: https://github.com/frankmullenger/silverstripe-swipestripe/issues/42 |
yes, the whole problem is the Customer class, and as far as I can see, we all agree to re factor out the Customer class in the next release. I would rather invest the resources we have into a new release, than hunting down bugs that will be obsolete by the next version. My vote goes to close as wont-fix unless someone is willing to do a pull request. |
Agree with @Zauberfisch, this should be fixed in the next version with the removal of Customer class so we could close this for now. @chrisrae are you happy with that approach? |
Totally fine. Chris Rae - Web Services Manager On Tue, May 13, 2014 at 8:41 PM, Frank Mullenger
|
Suggest temporary fix change line 276 of OrderForm.php to |
Line 273
This will cause an uncaught ValidationException as it does not check the Member table, only the members linked to via the Customer table.
If I create an account (say the primary admin account when I install SS) with an email foo@bar.com and then I try to purchase an item using the foo@bar.com email address on the checkout page without being logged in - the system will try to write that member and blow up as a result. foo@bar.com won't be a customer, but will be a member, which SS will find out about when it tries to write a new member on top of it.
The text was updated successfully, but these errors were encountered: