Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

NoMethodError: undefined method `parent.subject' #225

Open
martincizek opened this issue Apr 27, 2021 · 0 comments · May be fixed by #227
Open

NoMethodError: undefined method `parent.subject' #225

martincizek opened this issue Apr 27, 2021 · 0 comments · May be fixed by #227

Comments

@martincizek
Copy link

martincizek commented Apr 27, 2021

When I run Redmine tests with redmine_tags installed, the error below is reported by IssuesPdfHelperTest#test_fetch_row_values_should_be_able_to_handle_parent_issue_subject.

It looks like the very issue in Redmine itself: https://www.redmine.org/issues/33103, which is already fixed. The same fix might be appropriate here too...

$ ruby test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
[...]
Error:
IssuesPdfHelperTest#test_fetch_row_values_should_be_able_to_handle_parent_issue_subject:
NoMethodError: undefined method `parent.subject' for #<Issue:0x000055c70383cf28>
Did you mean?  parent_issue_id
    plugins/redmine_tags/lib/redmine_tags/patches/issues_pdf_helper_patch.rb:19:in `block in fetch_row_values_with_redmine_tags'
    plugins/redmine_tags/lib/redmine_tags/patches/issues_pdf_helper_patch.rb:14:in `collect'
    plugins/redmine_tags/lib/redmine_tags/patches/issues_pdf_helper_patch.rb:14:in `fetch_row_values_with_redmine_tags'
    test/unit/lib/redmine/export/pdf/issues_pdf_test.rb:47:in `test_fetch_row_values_should_be_able_to_handle_parent_issue_subject'

[...]
martincizek added a commit to orchitech/redmine_tags that referenced this issue Apr 30, 2021
@martincizek martincizek linked a pull request Apr 30, 2021 that will close this issue
martincizek added a commit to orchitech/redmine_tags that referenced this issue May 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant