diff options
-rw-r--r-- | bugzilla.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bugzilla.rb b/bugzilla.rb index 1da3f01..6d2a288 100644 --- a/bugzilla.rb +++ b/bugzilla.rb @@ -301,9 +301,13 @@ class BugzillaPlugin < Plugin "#{bugxml.get_text("product")} | #{bugxml.get_text("component")}". chomp(" | ") - status = - "#{bugxml.get_text("bug_status")}#{bugxml.get_text("issue_status")}, #{bugxml.get_text("resolution")}". - chomp(", ") + status = bugxml.get_text("bug_status").to_s + issue = bugxml.get_text("issue_status").to_s + reso = bugxml.get_text("resolution").to_s + + status = status[0..3] + status += ", #{issue[0..3]}" if issue and issue.length > 0 + status += ", #{reso[0..3]}" if reso and reso.length > 0 desc = bugxml.get_text("short_desc").to_s.decode_entities |