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 914
    • Issues 914
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Development
  • Core
  • Issues
  • #1929

Closed
Open
Opened Aug 05, 2020 by ayduns@aydunsDeveloper

Custom field values not showing in Drupal 7 Views filter

Overview

When a custom field is created with a specified column_name, the field does not work correctly when used as a Drupal 7 Views filter.

Custom fields created via the UI, or by API when the column_name is not specified all work as expected.

Reproduction steps

  1. Create a Custom Field via API extending Contact, type Select (drop-down) and set the column_name. Create a few option values.
  2. Set up system for Views (copy from Administration > System Settings > CMS Integration etc)
  3. Create a View based on Contacts, add a Filter and select the custom field
  4. Note an AJAX error including Unsupported operand types in views_handler_filter_in_operator->value_form()

For the same problem but using a different handler, repeat with Checkbox type.

Current behaviour

Error shown and no filter values shown.

Expected behaviour

No error, filter values shown

Environment information

  • CiviCRM: Master
Edited Aug 05, 2020 by ayduns
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#1929