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

Search Builder - Export with Multiple AND Criteria Thows Fatal Error (unsupported operand types)

    Details

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

      Description

      This fatal error was reported by Jay Davis and recreated by myself and him on demo using the steps below. HOWEVER, it also recreates for me with another case (search builder -> search on Individual Last Name AND Individual Email LIKE 'ad%'. I suspect the error will come up for all/many cases where there are > 1 search critieria in a set AND we do Export >> Select Fields for Export.

      ---------------------

      Fatal error: Unsupported operand types in .../modules/civicrm/CRM/Contact/Form/Task/Export/Map.php on line 81

      — steps from Jay Davis ----
      1. I created two custom date fields assigned to Households. The fields
      are 'Start Date' and 'Finish Date.'

      2. I do a 'Search Builder' search. In the search, I ask for all records
      with these criteria:

      Households >= Start Date 20010101
      Households <= Finish Date 201001010

      3. Search returns one record. (I had added one Household record that
      meets the above criteria.) I tell CiviCRM to 'Export Contacts' for the
      found record.

      4. On the next page, I select 'Select fields for export' and press Continue.

      Fatal error: Unsupported operand types in /home/civicrm.org/demo/svn/
      stable/CRM/Contact/Form/Task/Export/Map.php on line 81

        Attachments

          Activity

            People

            • Assignee:
              sunil Sunil Pawar
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: