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

dev/core#2613 - Replace deprecated function in useradd task #20347

Merged
merged 1 commit into from
May 19, 2021

Conversation

demeritcowboy
Copy link
Contributor

Overview

https://lab.civicrm.org/dev/core/-/issues/2613

Before

  1. Use 5.36 or earlier, or the latest master, and not wordpress.
  2. Log in as a user with user creation rights.
  3. View a contact.
  4. From the actions menu choose Create User Record.
  5. Fill it out and save.
  6. Deprecated function: Function create_function() is deprecated...

After

  1. No warning.

Technical Details

It's deprecated in php 7.2 and will be removed in php 8. This is the only place the quickform 'compare' formrule is used, and it's kind of a weird function, so rather than try to fix it, just use a regular formRule.

Comments

@civibot
Copy link

civibot bot commented May 19, 2021

(Standard links)

@civibot civibot bot added the master label May 19, 2021
@seamuslee001
Copy link
Contributor

(CiviCRM Review Template WORD-1.2)

@seamuslee001 seamuslee001 merged commit bc360ba into civicrm:master May 19, 2021
@demeritcowboy demeritcowboy deleted the pass-compare branch May 19, 2021 22:18
@demeritcowboy
Copy link
Contributor Author

Thanks!

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