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

CRM-20598 Phone ext in profile edit mode is messing up with address #11978

Merged
merged 1 commit into from
Apr 16, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Apr 16, 2018

Overview

Using a profile with phone+ext field is messing with the contact address in edit mode.

Before

To reproduce :

create a profile with "Phone and Extension" on primary field and some primary address fields (street, city, country)
use the profile in edit mode : e.g. http://example.com/civicrm/profile/view?reset=1&id=3&gid=1
first time, with no phone and address data, every is fine. Second time, with already existing address in the database, the address is removed.

After

Fixed

Technical Details

This is a reviewer's cut of #10377 which stalled on another unit test failing. As such I'm setting to merge-on-pass. I altered it in minor ways - mostly extracting to another function for readability & adding a few lines to the unit test

Comments

Thanks for writing a test for this @samuelsov - I found this because I was looking for something that could be resolved out of the queue & searched for items with the 'has-test' label & decided that the reason this was never getting through was it had fallen so far back that everytime someone evaluated it they got the tests to run to understand the problem, but then the test results had been wiped by the time the next person looked.


@seamuslee001
Copy link
Contributor

Jenkins re test this please

@eileenmcnaughton eileenmcnaughton merged commit 3efa727 into civicrm:master Apr 16, 2018
@eileenmcnaughton
Copy link
Contributor Author

unrelated fail

@eileenmcnaughton eileenmcnaughton deleted the profile branch April 16, 2018 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants