Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 982
    • Issues 982
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • Core
  • Issues
  • #1292

Closed
Open
Opened Oct 04, 2019 by DaveD@DaveDDeveloper

Contact Export has fatal error if you check the box 'Exclude contacts with "do not mail" privacy' AND the selected fields include "Do Not Mail"

Gives "Error: Cannot unset string offsets".

I think this would also apply if you selected to export the fields is_deceased or street_address.

See https://civicrm.stackexchange.com/questions/33245/error-cannot-unset-string-offsets-exporting-using-custom-field-mapping

To reproduce:

  1. Do contact search. For the purposes here make sure the search results have at least one contact with a street address, otherwise you'll trigger another issue which I'll post separately.
  2. Select a couple or all just include at least one with a street address.
  3. Choose export from the dropdown.
  4. Choose selected fields.
  5. Check the box that says Exclude contacts with "do not mail" privacy etc....
  6. On the next screen choose "Do Not Mail" as one of the fields.
  7. When you export you get the fatal error.

Seems like a typo here. $fields is missing an "s".

Looks like it was introduced in 5.17.x. I marked as regression but I know people are busy at the sprint and this is an easy fix for anyone to make themselves.

https://github.com/civicrm/civicrm-core/pull/15392

regression

Edited Oct 04, 2019 by DaveD
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
5.18.1
Milestone
5.18.1
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#1292