mecachisenros / cf-civicrm

Caldera Forms CiviCRM Integration
GNU Affero General Public License v3.0
30 stars 26 forks source link

Civicrm in create same record are marge #97

Open seedersdev opened 5 years ago

seedersdev commented 5 years ago

We are using CiviCRM to create a new contact and generate a case. http://prntscr.com/mfjt7e

We have submitted the caldera form after we have got two entries, one for caldera form and second for CiviCRM. But in which the CiviCRM get that issue for the same email ID's two entry. http://prntscr.com/mfjvzn

1)You can see the case and contact. http://prntscr.com/mfk7hx 2)User register. http://prntscr.com/mfk7xh

May I know How to marge that same email ID's record? Please answer as much as earlier possible. Thank You.

mecachisenros commented 5 years ago

@Rohansystem sorry for the late reply, this is caused due to the Contact processor being processed before the User registration processor, as a temporary solution you could add the following snippet to your theme's functions.php, once added, edit the form moving the User registration processor before the Contact processor and save, that should fix the issue.

add_filter( 'caldera_forms_get_form', function( $config ) {

    remove_filter( 'caldera_forms_presave_form', [ caldera_forms_civicrm()->forms, 'reorder_contact_processors' ], 20 );

    return $config;

} );

I will address this in the next release.