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

ACF CiviCRM Contact Reference field broken since 6.3.10 #58

Open
seamuslee001 opened this issue Nov 22, 2024 · 3 comments
Open

ACF CiviCRM Contact Reference field broken since 6.3.10 #58

seamuslee001 opened this issue Nov 22, 2024 · 3 comments

Comments

@seamuslee001
Copy link
Contributor

In ACF 6.3.10 based on the change log here https://www.advancedcustomfields.com/changelog/ the nonce is now prefixed

Like for select

$select['data-nonce'] = wp_create_nonce( 'acf_field_' . $this->name . '_' . $field['key'] )

This means that the validation here https://github.com/christianwach/civicrm-wp-profile-sync/blob/master/includes/acf/fields/cwps-acf-field-civicrm-contact.php#L349 has broken as we only pass in the field_key not the full prefixed nonce

@christianwach
Copy link
Owner

christianwach commented Nov 22, 2024

@seamuslee001 Thanks for the report. I helped Konrad fix ACF Extended, which broke with that update - didn't realise forgot that some of the fields in this plugin were also affected. I'll be working on an upgrade for ACFE form actions next week, so will fix then.

@christianwach
Copy link
Owner

@seamuslee001 You could use this MU Plugin in the meantime

https://gist.github.com/christianwach/608bf11926575e824012f1ea18a38e72

@christianwach
Copy link
Owner

@seamuslee001 Can you test the latest commits to master? They work for me when I've removed the MU Plugin I pointed to in my previous reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants