Defect #823
Updated by Mitsuyoshi Yoshida about 12 years ago
h4. 内容
チケットステータス(issue_statuses)のidとpositionカラムの値が異なる場合、
ワークフロー図にラベル名(name)が表示されず、positionの値が表示される。
h4. 原因
graphviz_helper.rbのcreate_dot_statusesメソッド内の39行目で
sts.idがuses配列に含まれるか検証を行っている為、チケットステータスの順序を
変更した場合、該当のsts.positionがスキップされる。
@next unless uses.include?(sts.id)@
h4. 修正箇所
<pre>
diff graphviz_helper.rb graphviz_helper.rb.orig
39c39
< next unless uses.include?(sts.position)
---
> next unless uses.include?(sts.id)
</pre>
h4. 環境
|Redmine|1.2.1.stable (MySQL)|
|Ruby version|1.8.7 (x86_64-linux)|
|RubyGems version|1.3.7|
|Rack version|1.1.1|
|Rails version|2.3.11|
|Active Record version|2.3.11|
|Active Resource version|2.3.11|
|Action Mailer version|2.3.11|
|Active Support version|2.3.11|
|Edge Rails revision|unknown|
|Application root|/home/redmine|
|Environment|production|
|Database adapter|mysql|
|Database schema version|20110511000000|