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

Sort order of search not preserved in Export

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      Follow-Up of CRM-15301

      Sorting of exported contributions, memberships or contacts is not preserved from search in export.

      Steps to reproduce:

      • Find Contribution
      • Change sort order
      • Select all contributions
      • Select 'export contributions' from dropdown
      • sorting in csv file is not identical to search

      Problem is in CRM/Export/BAO/Export.php, line 721

      if (!empty($returnProperties[$field])) {
              //CRM-15301
              $queryString .= " ORDER BY $order";     
      }
      

      The if construct never becomes true and therefore the order by-clause is not appended.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              baerm Matthias Bärnthaler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: