Problem/Motivation

All "dropdown filters" provided by the year_views submodule have the same name "Year (Dropdown Filter)". If there is more than one year field, a seemingly duplicate "Year (Dropdown Filter)" appears for each, making it difficult (impossible) to tell which filter acts on which field.

Proposed resolution

Include the field name in each filter title. In year.module, line 41:

'title' => t('Year (Dropdown Filter)'),

Should be something like:

'title' => t('@name (Dropdown Filter)', ['@name' => $field_data['title']]),

Issue fork year-3464768

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

justcaldwell created an issue. See original summary.

  • justcaldwell committed 4651f752 on 1.x
    Issue #3464768: Include field label in "Dropdown Filter" name
    
justcaldwell’s picture

Status: Active » Fixed
justcaldwell’s picture

Assigned: justcaldwell » Unassigned

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.