Project

General

Profile

Actions

Defect #29643

closed

Issue filter broken for custom fields that are 'remote'

Defect #29643: Issue filter broken for custom fields that are 'remote'

Added by Sebastian Paluch about 8 years ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues filter
Target version:
-
Resolution:
Duplicate
Affected version:

Description

The issue filtering is broken for all plugins that provides a custom queries implementation.

Example... when a plugin creates new tab with customized issue filtering, it may implement new query class that inherits from IssueQuery.

Unfortunately, the changes made for task #24787 in r16170 breaks this.

This is because the queries_controller in the def filter is using get_subclass to figure out the actual query requesting values for the filter. The get_subclass is called on Query class and it uses subclasses to check if requested class is a Query. Unfortunately subclasses return only direct subclasses.

This way, it is not possible now do customize any existing query class and all plugins that do so stopped working.


Related issues 1 (0 open — 1 closed)

Is duplicate of Redmine - Patch #25265: QueriesController can not handle subclass of IssueQueryClosedJean-Philippe LangActions

Updated by Go MAEDA 3 months ago Actions #1

  • Status changed from New to Closed
  • Resolution set to Duplicate

This issue appears to be a duplicate of #25265. The underlying problem was fixed in r18754 and released with Redmine 4.1.0.

Updated by Go MAEDA 3 months ago Actions #2

  • Is duplicate of Patch #25265: QueriesController can not handle subclass of IssueQuery added
Actions

Also available in: PDF Atom