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

Preferred Communication Method is not set to default for contact

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.29
    • Fix Version/s: 4.7.31
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Steps to replicate:
      1. Add 'Preferred Communication Method' method to a profile.
      2. Update the 'Preferred Communication Method' for a contact using the profile at #1
      3. Re-visit the profile form of the contact in edit mode (/civicrm/profile/edit?gid=1&reset=1&id=202)

      Result:
      Preferred Communication Method is updated for a contact but are never preset to the value stored in the CiviCRM database, the boxes are always unchecked regardless of the underlying stored value.

      Notice error:
      Warning: explode() expects parameter 2 to be string, array given in CRM_Core_BAO_UFGroup::setProfileDefaults() (line 2355 of /Users/pradeep/git/biz.jmaconsulting.bugp/CRM/Core/BAO/UFGroup.php).
      Warning: Invalid argument supplied for foreach() in CRM_Core_BAO_UFGroup::setProfileDefaults() (line 2356 of /Users/pradeep/git/biz.jmaconsulting.bugp/CRM/Core/BAO/UFGroup.php).

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              pradeep.nayak Pradeep Nayak
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: