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

Notices on Groups tab when adding contact to a group

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.2
    • Fix Version/s: 4.2.3
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Go to a contact summary, Groups tab. Add contact to a group.

      On my local install I get these notices:
      Notice: Use of undefined constant SORT_NATURAL - assumed 'SORT_NATURAL' in CRM_Contact_Form_GroupContact->buildQuickForm() (line 110 of /Users/dgg/svn/crm_v4.2/CRM/Contact/Form/GroupContact.php).
      Notice: Use of undefined constant SORT_FLAG_CASE - assumed 'SORT_FLAG_CASE' in CRM_Contact_Form_GroupContact->buildQuickForm() (line 110 of /Users/dgg/svn/crm_v4.2/CRM/Contact/Form/GroupContact.php).
      Warning: asort() expects parameter 2 to be long, string given in CRM_Contact_Form_GroupContact->buildQuickForm() (line 110 of /Users/dgg/svn/crm_v4.2/CRM/Contact/Form/GroupContact.php).

      On the drupal demo I get just the last one, but same problem (I think) - which is that those sort flag constants weren't defined prior to PHP 5.4 and we say 5.3 is ok (http://www.php.net/manual/en/function.sort.php). Seems like we should avoid them for now. Not sure what should replace them ??

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: