Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19172

on behalf form + user account creation attempts to create user for org

    Details

    • Versioning Impact:
      Major (incompatible API change)
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      I ran across this on 4.7.9, upgraded to 4.7.10 and it persists. I was testing on WordPress. To reproduce:

      • create a contrib page using on behalf of
      • for the individual's profile, select one that has user account creation enabled
      • visit the form in a private window (i.e. not logged in) so the user account creation fields are exposed. complete the form.

      The form will error with duplicate entry on UI_uf_name_domain_id – i.e. it's erroring when creating the uf_match record.

      The underlying problem is that it's creating a uf_match record between the individual and the user account AND the org and the user account. Only one user account is being constructed, but the uf_match creation is triggered twice.

      This effectively renders user account creation impossible when also using an on-behalf-of form.

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h