- result = "<tr><td><b>Source File(s):</b></td><td>"
- names = context[:issue].source_files.map {|name| "<span>" + name + "</span>"}
- result << names.join(', ')
- result + "</td></tr>"
+ # TODO: złapać wyjątek konwersji
+ if context[:issue].tracker_id == Setting.plugin_redmine_publications['tracker'].to_i
+ result = "<tr><td><b>Publication(s):</b></td><td>"
+ names = context[:issue].publication_names {|name| "<span>" + name + "</span>"}
+ result << names.join(', ')
+ result << "</td></tr>"
+ end