Commit e3ddfc199d76d5ddbc21ef75dad24f2c1b3912ad

Authored by Nathan Broadbent
1 parent 304f4290
Exists in master and in 1 other branch production

Handle nil ticket_properties in MingleTracker

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/issue_trackers/mingle_tracker.rb
... ... @@ -31,7 +31,7 @@ class MingleTracker < IssueTracker
31 31  
32 32 def ticket_properties_hash
33 33 # Parses 'key=value, key2=value2' from ticket_properties into a ruby hash.
34   - self.ticket_properties.split(",").inject({}) do |hash, pair|
  34 + self.ticket_properties.to_s.split(",").inject({}) do |hash, pair|
35 35 key, value = pair.split("=").map(&:strip)
36 36 hash[key] = value
37 37 hash
... ...