mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 00:04:20 +00:00
Merge branch 'devel-2.0.1'
This commit is contained in:
commit
7e34510072
@ -1,6 +1,14 @@
|
||||
Changelog for Custom Workflows
|
||||
==============================
|
||||
|
||||
2.0.1 *2022-05-13*
|
||||
------------------
|
||||
|
||||
Ruby 2.7 backward compatibility
|
||||
|
||||
* Bug: #257 - IssueRelation.to_s is broken after #257 bug
|
||||
* Bug: #258 - Tried to create Proc object without a block
|
||||
|
||||
2.0.0 *2022-04-27*
|
||||
------------------
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Custom Workflows plug-in
|
||||
========================
|
||||
|
||||
The current version of Redmine CustomWorkflows is **2.0.0**
|
||||
The current version of Redmine CustomWorkflows is **2.0.1**
|
||||
|
||||
[](https://gitlab.kontron.com/redmine-plugins/redmine_custom_workflows/-/commits/master)
|
||||
[](https://github.com/support-ukraine/support-ukraine)
|
||||
|
||||
@ -36,7 +36,15 @@ module RedmineCustomWorkflows
|
||||
alias_method :old_to_s, :to_s
|
||||
|
||||
def to_s(issue=nil)
|
||||
block_given? ? old_to_s(issue, &Proc.new {}) : old_to_s(issue)
|
||||
if block_given?
|
||||
if Gem.ruby_version < Gem::Version.new('3.0')
|
||||
old_to_s issue, &Proc.new
|
||||
else
|
||||
old_to_s issue, &Proc.new {}
|
||||
end
|
||||
else
|
||||
old_to_s issue
|
||||
end
|
||||
rescue NoMethodError => e
|
||||
if issue_from.present? || issue_to.present?
|
||||
raise e
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user