]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Some genius translated the name of a variable... Fixes #2417.
[rails.git] / app / models / trace.rb
index cbfd68996ff5a7944ecb5df197a01163fd670575..24f93236a7367200d6c50f8aa4eccbfdce9a32ec 100644 (file)
@@ -26,7 +26,7 @@ class Trace < ActiveRecord::Base
 
   def tagstring=(s)
     if s.include? ','
-      self.tags = s.split(/\s*,\s*/).collect {|tag|
+      self.tags = s.split(/\s*,\s*/).select {|tag| tag !~ /^\s*$/}.collect {|tag|
         tt = Tracetag.new
         tt.tag = tag
         tt