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

Fixed 2948459 #137

Closed
wants to merge 1 commit into from
Closed

Conversation

jaapjansma
Copy link
Contributor

@jaapjansma jaapjansma commented May 16, 2018

Overview

Bug fix of a bug which occured in certain versions of civicrm in combination with a certain version of webform_civicrm module.

  • CiviCRM version 4.7.29
  • Webform_civicrm version 7.x-4.20

Before

When one adds a webform with address details on it (for example a webform where a new person is registered into civicrm) the address creation will fail. The contact will be created, email address will be created but no address on the contact record,
The failure could be found in the Drupal Log and the address submitted as well.

After

When one adds a webform with address details on it (for example a webform where a new person is registered into civicrm) the address creation will succeed. The contact will be created, email address will be created and an address record is created

Technical Details

This was caused by the fact that master_id was set to 'null' and that did not work in address create api. Unsetting the master_id parameter fixed it.

@colemanw
Copy link
Owner

@jaapjansma could you please give steps to reproduce this bug, as well as the versions affected? Thanks.

@jaapjansma
Copy link
Contributor Author

@colemanw I have updated the description of the PR and included how to reproduce the bug.

@colemanw
Copy link
Owner

That really sounds like a bug in the CiviCRM API. Value of 'null' is legitimate input, and should not cause a failure.

@colemanw
Copy link
Owner

colemanw commented May 18, 2018

I just tried to reproduce the bug in the Api Explorer* (in the latest CiviCRM master branch) and could not.
@jaapjansma am I missing something?

screenshot from 2018-05-18 12 28 42

* The api explorer doesn't allow random strings in that field (it tries to let you autocomplete existing addresses instead) so I had to do this hack in the browser console to actually test this: cj('input.crm-address-ref').crmSelect2('destroy');

@jaapjansma
Copy link
Contributor Author

jaapjansma commented May 18, 2018

You need CiviCRM version 4.7.29. It is fixed in the latest civicrm

@jaapjansma
Copy link
Contributor Author

The regression has been fixed in this PR: civicrm/civicrm-core#11324

@colemanw
Copy link
Owner

Ok, since the bug has been fixed upstream I think we can close this. Not setting the shared address to null could result in other bugs so I think it's best to leave as-is.

@colemanw colemanw closed this May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants