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-21175 fix fatal error on multiple custom field import. #10975

Merged
merged 1 commit into from
Sep 12, 2017

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Sep 12, 2017

Additional test is tangental....

Overview

Fixes fatal error on attempting to import multiple custom data values

Before

civicrm/import/custom returns CiviCRM_API3_Exception: "'Import Multi value custom data' is not a valid option for field mapping_type_id"

After

Page loads correctly

Technical Details

Recent changes caused this to go from silent weird behaviour to a hard fail. I have gone with an ad-hoc creating of the option rather than in import in case other imports (including external) are impacted.


@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 can you re-test this - I just checked on http://core-10975-7apms.test-ubu1204-5.civicrm.org/civicrm/import/custom & it is OK (it wasn't earlier & the change I made in between was just is_reserved => 1

@seamuslee001
Copy link
Contributor

Re-tetested on a separate local install, confirmed fatal error, applied patch fatal error goes away and form is shown

@eileenmcnaughton
Copy link
Contributor Author

Thanks @seamuslee001 - just trying to get someone else to merge it now - note this is a recent regression (although no user picked it up & it is in slightly obscure functionality, I only noticed it through trying to replicate another issue for PR review). Hence rc merge

@totten
Copy link
Member

totten commented Sep 12, 2017

Seamus's testing sounds proportionate. Thanks to both of you. :)

@totten totten merged commit 14d9e12 into civicrm:4.7.25-rc Sep 12, 2017
@eileenmcnaughton eileenmcnaughton deleted the 4.7.25-rc branch September 13, 2017 00:48
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