X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/565171486f6d90321e0291d5ccc3cf6a1c12e730..02ad2f5a5192404185d00ec1b53ae2982760c0ea:/app/models/trace.rb diff --git a/app/models/trace.rb b/app/models/trace.rb index cbfd68996..24f93236a 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -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