Skip to content
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

Fix bug where NoMethodError is occurs when selecting "Like" column on the issue query #43

Merged
merged 3 commits into from Mar 26, 2023

Conversation

cat-in-136
Copy link
Owner

The change in https://www.redmine.org/projects/redmine/repository/svn/revisions/21645 (#37255: Information Leak in QueryAssociationColumn/QueryAssociationCustomFieldColumn) makes visible? method to be called on the query.

The relations generated by QueryAssociationColumn.new(:hearts, :count do not have the visible? method. Instead use QueryColumn.new(:hearted_user_count and introduce hearted_user_count method to Heartable objects.

Note that there is an incompatibility of "Like" query filter ID: hearts.count -> hearted_user_count

fix #40

@cat-in-136 cat-in-136 merged commit 3fbad2c into master Mar 26, 2023
24 checks passed
@cat-in-136 cat-in-136 deleted the visible-not-found branch March 26, 2023 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

500 error occurred at redmine 4.2.9
1 participant