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

update entity mapping logic for profile fields to include contact subtypes #25570

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

kurund
Copy link
Contributor

@kurund kurund commented Feb 14, 2023

Overview

Currently fields belonging to contact subtypes are not mapped to correct entity hence it results in a fatal error using profile submit API.

Steps to replicate

  • Use Contact Summary Layout extension and add a section using profile with fields that belong to contact sub type.
  • Inline edit fails

Proposed solution

  • We already update fields that belong to contact types to contact. In this PR I have extended the logic to also include contact subtypes.

@civibot
Copy link

civibot bot commented Feb 14, 2023

(Standard links)

@civibot civibot bot added the master label Feb 14, 2023
@yashodha
Copy link
Contributor

@kurund looks good, merging this PR.

@yashodha yashodha merged commit 07c232e into civicrm:master Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants