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

sortByCharacter parameter filtered out from API request

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 4.3.3
    • Fix Version/s: 4.3.5
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      sortByCharacter parameter is not taken into account anymore in REST API contact/get

      This parameter is filtered out in api/v3/utils.php around line 438

      It seems this can be solved by adding the following two lines in api/v3/utils.php

      @@ -417,4 +417,6 @@
      // we need to add this in as earlier in this function 'id' was unset in favour of $entity_id
      $fields['values'][$entity . '_id'] = array();
      + // we need to add this to prevent stripping of this parameter
      + $fields['values']['sortByCharacter'] = '';
      $varsToFilter = array('returnProperties', 'inputParams');
      foreach ($varsToFilter as $varToFilter){

      I don't know if this is the prefered way to patch.

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              f2boot Fred BOOT
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: