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

Export only serves first row of result set

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 4.7.6
    • Fix Version/s: 4.7.7
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      When exporting any contacts the resulting csv always holds one single line besides the header.

      Hunting the reason I saw that CRM/Export/BAO/Export.php's exportComponents method uitilizes CRM_Core_DAO::executeUnbufferedQuery($limitQuery) and after that calls $dao->fetch() which won't work with unbuffered mysql results.

      I won't offer a patch here because we don't suffer from too less memory and I decided just to call executeQuery() than to fetch results from mysql...

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              nielo Niels Heinemann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: