Skip to content

Fix error when filtering by backlog type Task #19326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

cbliard
Copy link
Member

@cbliard cbliard commented Jun 26, 2025

Ticket

https://community.openproject.org/wp/65085

What are you trying to accomplish?

Fix error when filtering work package list by "Backlog type" with "Task", "Impediment", or "any".

Screenshots

An example of the error displayed when selecting backlog type = Task

image

What approach did you choose and why?

It was using Relation.hierarch scope, which is not available since 491928a (#10349) in March 2022.

Replaced by another SQL query to check if a work package is a child or not.

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@cbliard cbliard requested review from ulferts and toy June 26, 2025 10:05
https://community.openproject.org/wp/65085

It was using `Relation.hierarch` scope, which is not available since
491928a in March 2022.

Replaced by another SQL query to check if a work package is a child or
not.
@cbliard cbliard force-pushed the bugfix/65085-nomethoderror-undefined-method-hierarchy-for-class-relation branch from 8d93972 to a85a99d Compare June 26, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant