Closed MayamaTakeshi closed 1 year ago
This was reported on 3.1.21 PRO. The version I have is 3.1.22 Light (FREE) and in it, the code that caused the error is absent:
module Hooks
class ControllerIssuesHook < Redmine::Hook::ViewListener
def controller_issues_edit_after_save(context = {})
- old_checklists = context[:issue].old_checklists
- new_checklists = context[:issue].checklists.to_json
- journal = context[:journal]
- details = JournalChecklistHistory.new(old_checklists, new_checklists).journal_details
- if JournalChecklistHistory.can_fixup?(details)
- JournalChecklistHistory.fixup(details)
- elsif details.old_value != details.value
- journal.details << details
- journal.save
- else
- journal.save
- end
if (Setting.issue_done_ratio == 'issue_field') && RedmineChecklists.issue_done_ratio?
Checklist.recalc_issue_done_ratio(context[:issue].id)
I believe the absent code is related to features from the paid (PRO) version. So an upgrade to 3.1.22 PRO is unlikely to solve this issue.
This should have been solved by #44.
This doesn't happen with latest redmine_checklists 3.1.22.
The GUI shows a window with:
The redmine debug logs show: