Project

General

Profile

Actions

Defect #29643

closed

Issue filter broken for custom fields that are 'remote'

Added by Sebastian Paluch about 8 years ago. Updated 5 days 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

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

Updated by Go MAEDA 5 days ago

  • 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.

Actions #2

Updated by Go MAEDA 5 days ago

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

Also available in: Atom PDF