]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Reuse the map_bug_comment table as a more general history table of map_bugs including...
[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? ','
 
   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
         tt = Tracetag.new
         tt.tag = tag
         tt