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

Correctly check button to allow duplicate contact saving from profiles #19328

Merged
merged 1 commit into from
Jan 6, 2021

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Jan 6, 2021

Overview

Fixes the regression described in https://lab.civicrm.org/dev/core/-/issues/2287

Before

Popup profiles failed to save duplicate contacts.

After

Popup profiles correctly save duplicate contacts when user chooses to.

Technical Details

Changing the button from type=submit to type=button changed the values submitted back to the server. The value for the button came back as an empty string instead of the button label because submit elements have a value but buttons do not.

@civibot
Copy link

civibot bot commented Jan 6, 2021

(Standard links)

@civibot civibot bot added the master label Jan 6, 2021
@seamuslee001
Copy link
Contributor

@colemanw are you able to rebase this for 5.33?

@lcdservices
Copy link
Contributor

tested and this fixes the problem.

@colemanw colemanw force-pushed the duplicateButtonFix branch from 520c703 to f585b02 Compare January 6, 2021 20:11
@colemanw colemanw changed the base branch from master to 5.33 January 6, 2021 20:11
@civibot civibot bot added 5.33 and removed master labels Jan 6, 2021
@seamuslee001 seamuslee001 merged commit 8a6df4f into civicrm:5.33 Jan 6, 2021
@seamuslee001 seamuslee001 deleted the duplicateButtonFix branch January 6, 2021 21:33
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.

3 participants