-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
CRM-18397: Blank billing address created on paid event registrations with no billing address #8176
Conversation
jenkins, retest this please |
@JKingsnorth, following cases are covered in this PR:
|
Manual testing does not pass, commented on JIRA. |
@JKingsnorth , I agree with your comment which you've mentioned on JIRA. If you changed any information for contact it does not update. This PR changes only fixes the following scenario:
I have also tested with your PR (#8122). As you mentioned in issue description, if we don't ask for billing details on the form, then we don't want to store them in Civi. So don't create a blank billing address. In your PR, if I create contribution via external payment processor, then its added blank 'Billing Address' on contact summary page only with billing names and empty address fields. I think this is odd. So, I think as you mentioned in comment on JIRA, need to handle changes to updates contact information. |
I'll take another look at the other PR. On my last testing it didn't create the blank billing details, but I'll re-check with a couple of external providers to see what the problem is - thanks for the feedback. I'll also take a look at it in the context of 'pay later' with the 'billing address required' setting that you mention. I'll take a look at this as soon as I can tomorrow. Thanks again. |
@JKingsnorth, I have updated a PR for following scenarios:
can you please check if PR satisfies above scenarios? |
Changes for CRM-18397 warning fix
unset($value["billing_country_id-{$this->_bltID}"]); | ||
unset($value["address_name-{$this->_bltID}"]); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks redundant as the above code 469-494 does the same job - unset billing address field (should have extended the above IF condition to do the same). Also looks like we are simply wiping out the billing address without a criteria this might affect payment processor which require billing address.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also have a bit of a vendetta against 'lists of fields' in Civi that are manually typed out like this. They are quite hard to maintain. I'll take another look at this in the alternate PR.
@JKingsnorth, I am using 'PayPal - Website Payments Pro' processor for testing. I am closing this PR, because it may affect other use-cases where billing address is required in case of other external payment processor. you can cherry-pick my commit if its helpful. |
Am I correct this PR is not merged? Any chance it will be? |
@magnolia61 Would you be able to test the other PR we've proposed? #8122 If it works for you then that would be a good bit of review. If you find any issues then do let us know on the issue on JIRA, or on that PR. |
https://issues.civicrm.org/jira/browse/CRM-18397