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

crm_add_group_contacts() should return error if $group is not a Group object

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The code checks that the contacts are objects - it should do the same with the $group parameter.

      Currently, a confusing foreign key error is raised if $group in NULL or otherwise bad.

      OK, I'm saying this because I managed to screw up with my parameter passing, but I guess I wont be the only one.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              krabi Peter Cruickshank
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: